Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class LocationableExceptionNormalizer implements NormalizerInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var ExceptionNormalizer |
||
16 | */ |
||
17 | private $exceptionNormalizer; |
||
18 | |||
19 | /** |
||
20 | * @var Translator |
||
21 | */ |
||
22 | private $translator; |
||
23 | |||
24 | public function __construct(ExceptionNormalizer $exceptionNormalizer, Translator $translator) |
||
25 | { |
||
26 | $this->exceptionNormalizer = $exceptionNormalizer; |
||
27 | $this->translator = $translator; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | */ |
||
33 | public function normalize($object, string $format = null, array $context = []) |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | public function supportsNormalization($data, string $format = null) |
||
60 | } |
||
61 | } |
||
62 |