Skip to content

Commit

Permalink
refactor(lib): get fully qualified name with ::class
Browse files Browse the repository at this point in the history
Release-As: 2.1.1
  • Loading branch information
dependabot[bot] authored and remarkablemark committed Jul 4, 2024
1 parent c5b1f1d commit 3612123
Show file tree
Hide file tree
Showing 107 changed files with 1,176 additions and 964 deletions.
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;

Check warning on line 34 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php#L34

Added line #L34 was not covered by tests
}

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;

Check warning on line 39 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php#L39

Added line #L39 was not covered by tests
}

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];

Check warning on line 92 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php#L92

Added line #L92 was not covered by tests
}
}
} 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;

Check warning on line 105 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php#L105

Added line #L105 was not covered by tests
}

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;

Check warning on line 110 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php#L110

Added line #L110 was not covered by tests
}

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];

Check warning on line 166 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php#L166

Added line #L166 was not covered by tests
}
}
}
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;

Check warning on line 34 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L34

Added line #L34 was not covered by tests
}

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;

Check warning on line 39 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L39

Added line #L39 was not covered by tests
}

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);

Check warning on line 65 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L65

Added line #L65 was not covered by tests
}
$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));

Check warning on line 71 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L71

Added line #L71 was not covered by tests
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));

Check warning on line 87 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L87

Added line #L87 was not covered by tests
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];

Check warning on line 142 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L142

Added line #L142 was not covered by tests
}
}
} 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;

Check warning on line 155 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L155

Added line #L155 was not covered by tests
}

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;

Check warning on line 160 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L160

Added line #L160 was not covered by tests
}

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);

Check warning on line 186 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L186

Added line #L186 was not covered by tests
}
$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));

Check warning on line 192 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L192

Added line #L192 was not covered by tests
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));

Check warning on line 208 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L208

Added line #L208 was not covered by tests
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];

Check warning on line 266 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php#L266

Added line #L266 was not covered by tests
}
}
}
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;

Check warning on line 34 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php#L34

Added line #L34 was not covered by tests
}

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;

Check warning on line 39 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php#L39

Added line #L39 was not covered by tests
}

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];

Check warning on line 106 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php#L106

Added line #L106 was not covered by tests
}
}
} 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;

Check warning on line 119 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php#L119

Added line #L119 was not covered by tests
}

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;

Check warning on line 124 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php#L124

Added line #L124 was not covered by tests
}

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];

Check warning on line 194 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php#L194

Added line #L194 was not covered by tests
}
}
}
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;

Check warning on line 34 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php#L34

Added line #L34 was not covered by tests
}

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;

Check warning on line 39 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php#L39

Added line #L39 was not covered by tests
}

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];

Check warning on line 98 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php#L98

Added line #L98 was not covered by tests
}
}
} 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;

Check warning on line 111 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php#L111

Added line #L111 was not covered by tests
}

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;

Check warning on line 116 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php#L116

Added line #L116 was not covered by tests
}

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];

Check warning on line 178 in lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php#L178

Added line #L178 was not covered by tests
}
}
}
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;

Check warning on line 34 in lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php#L34

Added line #L34 was not covered by tests
}

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;

Check warning on line 39 in lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php#L39

Added line #L39 was not covered by tests
}

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];

Check warning on line 91 in lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php#L91

Added line #L91 was not covered by tests
}
}
} 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;

Check warning on line 104 in lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php#L104

Added line #L104 was not covered by tests
}

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;

Check warning on line 109 in lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php#L109

Added line #L109 was not covered by tests
}

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];

Check warning on line 164 in lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php

View check run for this annotation

Codecov / codecov/patch

lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php#L164

Added line #L164 was not covered by tests
}
}
}
Loading

0 comments on commit 3612123

Please sign in to comment.