Skip to content

Commit

Permalink
Fixes for issue UnimplementedInterfaceMethod: Method getsupportedtype…
Browse files Browse the repository at this point in the history
…s is not defined
  • Loading branch information
kedarkhaire committed Oct 15, 2024
1 parent f43f83e commit fcb0051
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Api/ApigeeX/Denormalizer/AppGroupMembershipDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,14 @@ public function supportsDenormalization($data, $type, $format = null)

return AppGroupMembership::class === $type || $type instanceof AppGroupMembership;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
AppGroupMembership::class => true,
];
}
}
12 changes: 12 additions & 0 deletions src/Api/Management/Query/StatsQueryNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

use Apigee\Edge\Serializer\JsonEncoder;
use DateTimeZone;
use StatsQuery;
use StatsQueryInterface;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
Expand Down Expand Up @@ -96,4 +98,14 @@ public function supportsNormalization($data, $format = null)
{
return $data instanceof StatsQuery;

Check failure on line 99 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.1, )

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:99:33: UndefinedClass: Class, interface or enum named StatsQuery does not exist (see https://psalm.dev/019)

Check failure on line 99 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.1, --prefer-lowest)

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:99:33: UndefinedClass: Class, interface or enum named StatsQuery does not exist (see https://psalm.dev/019)

Check failure on line 99 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.2, )

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:99:33: UndefinedClass: Class, interface or enum named StatsQuery does not exist (see https://psalm.dev/019)

Check failure on line 99 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.2, --prefer-lowest)

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:99:33: UndefinedClass: Class, interface or enum named StatsQuery does not exist (see https://psalm.dev/019)

Check failure on line 99 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.3, )

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:99:33: UndefinedClass: Class, interface or enum named StatsQuery does not exist (see https://psalm.dev/019)

Check failure on line 99 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.3, --prefer-lowest)

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:99:33: UndefinedClass: Class, interface or enum named StatsQuery does not exist (see https://psalm.dev/019)
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
StatsQueryInterface::class => true,

Check failure on line 108 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.1, )

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:108:13: UndefinedClass: Class, interface or enum named StatsQueryInterface does not exist (see https://psalm.dev/019)

Check failure on line 108 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.1, --prefer-lowest)

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:108:13: UndefinedClass: Class, interface or enum named StatsQueryInterface does not exist (see https://psalm.dev/019)

Check failure on line 108 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.2, )

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:108:13: UndefinedClass: Class, interface or enum named StatsQueryInterface does not exist (see https://psalm.dev/019)

Check failure on line 108 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.2, --prefer-lowest)

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:108:13: UndefinedClass: Class, interface or enum named StatsQueryInterface does not exist (see https://psalm.dev/019)

Check failure on line 108 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.3, )

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:108:13: UndefinedClass: Class, interface or enum named StatsQueryInterface does not exist (see https://psalm.dev/019)

Check failure on line 108 in src/Api/Management/Query/StatsQueryNormalizer.php

View workflow job for this annotation

GitHub Actions / test_and_lint (8.3, --prefer-lowest)

UndefinedClass

src/Api/Management/Query/StatsQueryNormalizer.php:108:13: UndefinedClass: Class, interface or enum named StatsQueryInterface does not exist (see https://psalm.dev/019)
];
}
}
10 changes: 10 additions & 0 deletions src/Serializer/EntitySerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,14 @@ protected function jsonEncoder(): JsonEncoder
// transforms objects to arrays.
return new JsonEncoder(new JsonDecode());
}

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

0 comments on commit fcb0051

Please sign in to comment.