Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class ItemNormalizer implements NormalizerInterface, CacheableSupportsMethodInterface |
||
21 | { |
||
22 | 1 | public function hasCacheableSupportsMethod(): bool |
|
23 | { |
||
24 | 1 | return true; |
|
25 | } |
||
26 | |||
27 | 1 | public function supportsNormalization(mixed $data, ?string $format = null): bool |
|
28 | { |
||
29 | 1 | return $data instanceof ItemInterface; |
|
30 | } |
||
31 | |||
32 | 1 | public function normalize(mixed $object, ?string $format = null, array $context = []): array |
|
36 | } |
||
37 | } |
||
38 |