Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class PaginatorNormalizer implements NormalizerInterface, SerializerAwareInterface |
||
11 | { |
||
12 | use SerializerAwareTrait; |
||
13 | |||
14 | public function normalize($object, string $format = null, array $context = []) |
||
15 | { |
||
16 | /** @var Pagerfanta $object */ |
||
17 | return $this->serializer->normalize($object->getCurrentPageResults(), $format, $context); |
||
18 | } |
||
19 | |||
20 | public function supportsNormalization($data, string $format = null) |
||
23 | } |
||
24 | } |
||
25 |