1 | <?php |
||
27 | class Serializer implements SerializerInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var NavigatorInterface |
||
31 | */ |
||
32 | private $navigator; |
||
33 | |||
34 | /** |
||
35 | * @var VisitorRegistryInterface |
||
36 | */ |
||
37 | private $visitorRegistry; |
||
38 | |||
39 | /** |
||
40 | * @var TypeParserInterface |
||
41 | */ |
||
42 | private $typeParser; |
||
43 | |||
44 | /** |
||
45 | * @param NavigatorInterface|null $navigator |
||
46 | * @param VisitorRegistryInterface|null $visitorRegistry |
||
47 | * @param TypeParserInterface|null $typeParser |
||
48 | */ |
||
49 | 549 | public function __construct( |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | 315 | public function serialize($data, $format, ContextInterface $context = null) |
|
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | 234 | public function deserialize($data, $type, $format, ContextInterface $context = null) |
|
86 | |||
87 | /** |
||
88 | * @param mixed $data |
||
89 | * @param int $direction |
||
90 | * @param string $format |
||
91 | * @param ContextInterface|null $context |
||
92 | * @param TypeMetadataInterface|null $type |
||
93 | * |
||
94 | * @return mixed |
||
95 | */ |
||
96 | 549 | private function navigate( |
|
111 | } |
||
112 |