1 | <?php |
||
13 | final class Serializard |
||
14 | { |
||
15 | private $normalizers; |
||
16 | private $hydrators; |
||
17 | /** @var Formats */ |
||
18 | private $formats; |
||
19 | |||
20 | 13 | public function __construct(Formats $formats, Normalizers $normalizers, Hydrators $hydrators) |
|
26 | |||
27 | 12 | public function serialize($var, $format, NormalizerContextInterface $context = null) |
|
31 | |||
32 | 4 | public function unserialize($var, $class, $format) |
|
36 | |||
37 | 11 | private function getNormalizerContext(NormalizerContextInterface $context = null, $var, $format) |
|
43 | } |
||
44 |