Skip to content

Commit

Permalink
test support
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-intelli committed Oct 2, 2023
1 parent d8888b8 commit 2d212c7
Show file tree
Hide file tree
Showing 14 changed files with 126 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Api/ApigeeX/Denormalizer/AppDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ public function supportsDenormalization($data, $type, $format = null)

return AppInterface::class === $type || $type instanceof AppInterface || in_array(AppInterface::class, class_implements($type));
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
AppInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Api/ApigeeX/Normalizer/AppNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,13 @@ public function normalize($object, $format = null, array $context = [])

return $normalized;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
AppInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Api/Management/Normalizer/AppCredentialNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,13 @@ public function normalize($object, $format = null, array $context = [])

return $normalized;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
AppCredentialInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Api/Management/Normalizer/AppNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,13 @@ public function normalize($object, $format = null, array $context = [])

return $normalized;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
AppInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Denormalizer/AttributesPropertyDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,13 @@ public function denormalize($data, $type, $format = null, array $context = [])

return parent::denormalize($data, $type, $format, $context);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
AttributesProperty::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Denormalizer/CredentialProductDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,13 @@ public function denormalize($data, $type, $format = null, array $context = [])
{
return new CredentialProduct($data->apiproduct, $data->status);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
CredentialProductInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Denormalizer/EdgeDateDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,13 @@ public function supportsDenormalization($data, $type, $format = null)
{
return isset(self::$supportedTypes[$type]);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
'*' => false,
];
}
}
9 changes: 9 additions & 0 deletions src/Denormalizer/KeyValueMapDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@ public function supportsDenormalization($data, $type, $format = null)

return KeyValueMapInterface::class === $type || $type instanceof KeyValueMapInterface || in_array(KeyValueMapInterface::class, class_implements($type));
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
KeyValueMapInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Denormalizer/ObjectDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,13 @@ public function setSerializer(SerializerInterface $serializer): void
$this->serializer = $serializer;
$this->objectNormalizer->setSerializer($this->serializer);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
'*' => false,
];
}
}
9 changes: 9 additions & 0 deletions src/Denormalizer/PropertiesPropertyDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,13 @@ public function denormalize($data, $type, $format = null, array $context = [])

return parent::denormalize($data, $type, $format, $context);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
PropertiesProperty::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Normalizer/CredentialProductNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,13 @@ public function supportsNormalization($data, $format = null)
{
return $data instanceof CredentialProductInterface;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
CredentialProductInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Normalizer/EdgeDateNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,13 @@ public function normalize($object, $format = null, array $context = [])
/* @var \DateTimeInterface $object */
return $object->getTimestamp() * 1000;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
\DateTimeInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Normalizer/KeyValueMapNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@ public function supportsNormalization($data, $format = null)
{
return $data instanceof KeyValueMapInterface;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
KeyValueMapInterface::class => TRUE,
];
}
}
9 changes: 9 additions & 0 deletions src/Normalizer/ObjectNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,13 @@ public function convertToArrayObject($normalized, $array_as_props = \ArrayObject
//default set ARRAY_AS_PROPS flag as we need entries to be accessed as properties.
return new \ArrayObject($normalized, $array_as_props);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return [
'*' => false,
];
}
}

0 comments on commit 2d212c7

Please sign in to comment.