| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | final class NestedNormalizer implements Normalizer, NormalizerAware |
||
| 12 | { |
||
| 13 | use WithNormalizer; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param Nested $specification |
||
| 17 | * @param mixed $context |
||
| 18 | */ |
||
| 19 | public function normalize($specification, $context) |
||
| 20 | { |
||
| 21 | return $this->normalizer()->normalize($specification->child(), $context); |
||
| 22 | } |
||
| 23 | |||
| 24 | 28 | public function supports($specification, $context): bool |
|
| 25 | { |
||
| 26 | 28 | return $specification instanceof Nested; |
|
| 27 | } |
||
| 28 | |||
| 29 | public function isCacheable(): bool |
||
| 32 | } |
||
| 33 | } |
||
| 34 |