Skip to content

Commit

Permalink
Merge pull request #86 from braze-community/dependabot/composer/jane-…
Browse files Browse the repository at this point in the history
…php/open-api-runtime-7.8.0

build(deps): update jane-php/open-api-runtime requirement from 7.7.0 to 7.8.0
  • Loading branch information
remarkablemark authored Jul 4, 2024
2 parents a3ab34a + 3612123 commit 10c6f7b
Show file tree
Hide file tree
Showing 108 changed files with 1,177 additions and 965 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
],
"require": {
"jane-php/open-api-runtime": "7.7.0",
"jane-php/open-api-runtime": "7.8.0",
"php": ">=8.0"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer implements Denorm

public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class;
}

public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
Expand Down Expand Up @@ -89,7 +89,7 @@ public function normalize(mixed $object, ?string $format = null, array $context

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class => false];
}
}
} else {
Expand All @@ -102,12 +102,12 @@ class CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer implements Denorm

public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class;
}

public function denormalize($data, $type, $format = null, array $context = [])
Expand Down Expand Up @@ -163,7 +163,7 @@ public function normalize($object, $format = null, array $context = [])

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class => false];
}
}
}
24 changes: 12 additions & 12 deletions lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class CampaignsTriggerScheduleCreatePostBodyNormalizer implements DenormalizerIn

public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBody';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBody::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBody';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBody::class;
}

public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
Expand All @@ -62,13 +62,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
if (\array_key_exists('recipients', $data)) {
$values = [];
foreach ($data['recipients'] as $value) {
$values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem', 'json', $context);
$values[] = $this->denormalizer->denormalize($value, \Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class, 'json', $context);
}
$object->setRecipients($values);
unset($data['recipients']);
}
if (\array_key_exists('audience', $data)) {
$object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience', 'json', $context));
$object->setAudience($this->denormalizer->denormalize($data['audience'], \Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class, 'json', $context));
unset($data['audience']);
}
if (\array_key_exists('broadcast', $data)) {
Expand All @@ -84,7 +84,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
unset($data['trigger_properties']);
}
if (\array_key_exists('schedule', $data)) {
$object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule', 'json', $context));
$object->setSchedule($this->denormalizer->denormalize($data['schedule'], \Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class, 'json', $context));
unset($data['schedule']);
}
foreach ($data as $key_1 => $value_2) {
Expand Down Expand Up @@ -139,7 +139,7 @@ public function normalize(mixed $object, ?string $format = null, array $context

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBody' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBody::class => false];
}
}
} else {
Expand All @@ -152,12 +152,12 @@ class CampaignsTriggerScheduleCreatePostBodyNormalizer implements DenormalizerIn

public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBody';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBody::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBody';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBody::class;
}

public function denormalize($data, $type, $format = null, array $context = [])
Expand All @@ -183,13 +183,13 @@ public function denormalize($data, $type, $format = null, array $context = [])
if (\array_key_exists('recipients', $data)) {
$values = [];
foreach ($data['recipients'] as $value) {
$values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem', 'json', $context);
$values[] = $this->denormalizer->denormalize($value, \Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class, 'json', $context);
}
$object->setRecipients($values);
unset($data['recipients']);
}
if (\array_key_exists('audience', $data)) {
$object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience', 'json', $context));
$object->setAudience($this->denormalizer->denormalize($data['audience'], \Braze\Model\CampaignsTriggerScheduleCreatePostBodyAudience::class, 'json', $context));
unset($data['audience']);
}
if (\array_key_exists('broadcast', $data)) {
Expand All @@ -205,7 +205,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
unset($data['trigger_properties']);
}
if (\array_key_exists('schedule', $data)) {
$object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule', 'json', $context));
$object->setSchedule($this->denormalizer->denormalize($data['schedule'], \Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class, 'json', $context));
unset($data['schedule']);
}
foreach ($data as $key_1 => $value_2) {
Expand Down Expand Up @@ -263,7 +263,7 @@ public function normalize($object, $format = null, array $context = [])

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBody' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBody::class => false];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer implements

public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class;
}

public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
Expand Down Expand Up @@ -103,7 +103,7 @@ public function normalize(mixed $object, ?string $format = null, array $context

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class => false];
}
}
} else {
Expand All @@ -116,12 +116,12 @@ class CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer implements

public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class;
}

public function denormalize($data, $type, $format = null, array $context = [])
Expand Down Expand Up @@ -191,7 +191,7 @@ public function normalize($object, $format = null, array $context = [])

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBodyRecipientsItem::class => false];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer implements Denorm

public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class;
}

public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
Expand Down Expand Up @@ -95,7 +95,7 @@ public function normalize(mixed $object, ?string $format = null, array $context

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class => false];
}
}
} else {
Expand All @@ -108,12 +108,12 @@ class CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer implements Denorm

public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule';
return $type === \Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class;
}

public function denormalize($data, $type, $format = null, array $context = [])
Expand Down Expand Up @@ -175,7 +175,7 @@ public function normalize($object, $format = null, array $context = [])

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule' => false];
return [\Braze\Model\CampaignsTriggerScheduleCreatePostBodySchedule::class => false];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class CampaignsTriggerScheduleDeletePostBodyNormalizer implements DenormalizerIn

public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleDeletePostBody';
return $type === \Braze\Model\CampaignsTriggerScheduleDeletePostBody::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleDeletePostBody';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleDeletePostBody::class;
}

public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
Expand Down Expand Up @@ -88,7 +88,7 @@ public function normalize(mixed $object, ?string $format = null, array $context

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleDeletePostBody' => false];
return [\Braze\Model\CampaignsTriggerScheduleDeletePostBody::class => false];
}
}
} else {
Expand All @@ -101,12 +101,12 @@ class CampaignsTriggerScheduleDeletePostBodyNormalizer implements DenormalizerIn

public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool
{
return $type === 'Braze\\Model\\CampaignsTriggerScheduleDeletePostBody';
return $type === \Braze\Model\CampaignsTriggerScheduleDeletePostBody::class;
}

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool
{
return is_object($data) && get_class($data) === 'Braze\\Model\\CampaignsTriggerScheduleDeletePostBody';
return is_object($data) && get_class($data) === Braze\Model\CampaignsTriggerScheduleDeletePostBody::class;
}

public function denormalize($data, $type, $format = null, array $context = [])
Expand Down Expand Up @@ -161,7 +161,7 @@ public function normalize($object, $format = null, array $context = [])

public function getSupportedTypes(?string $format = null): array
{
return ['Braze\\Model\\CampaignsTriggerScheduleDeletePostBody' => false];
return [\Braze\Model\CampaignsTriggerScheduleDeletePostBody::class => false];
}
}
}
Loading

0 comments on commit 10c6f7b

Please sign in to comment.