Total Complexity | 7 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Normalizer |
||
17 | { |
||
18 | /** |
||
19 | * @var NormalizerInterface |
||
20 | */ |
||
21 | private $serializer; |
||
22 | |||
23 | public function __construct() |
||
24 | { |
||
25 | $this->serializer = new Serializer([new ObjectNormalizer()]); |
||
26 | } |
||
27 | |||
28 | public function normalize(Mapping $mapping): array |
||
35 | } |
||
36 | |||
37 | private function normalizeArray(array $mapping): array |
||
53 | } |
||
54 | } |
||
55 |