1 | <?php |
||
11 | final class Deserializer implements DeserializerInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var DecoderInterface |
||
15 | */ |
||
16 | private $decoder; |
||
17 | |||
18 | /** |
||
19 | * @var DenormalizerInterface |
||
20 | */ |
||
21 | private $denormalizer; |
||
22 | |||
23 | /** |
||
24 | * @param DecoderInterface $decoder |
||
25 | * @param DenormalizerInterface $denormalizer |
||
26 | */ |
||
27 | 1 | public function __construct(DecoderInterface $decoder, DenormalizerInterface $denormalizer) |
|
32 | |||
33 | /** |
||
34 | * @param object|string $object |
||
35 | * @param string $data |
||
36 | * @param string $contentType |
||
37 | * @param DenormalizerContextInterface $context |
||
38 | * |
||
39 | * @return object |
||
40 | */ |
||
41 | 1 | public function deserialize( |
|
49 | |||
50 | /** |
||
51 | * @return string[] |
||
52 | */ |
||
53 | public function getContentTypes(): array |
||
57 | |||
58 | /** |
||
59 | * @param string $data |
||
60 | * @param string $contentType |
||
61 | * |
||
62 | * @return array |
||
63 | * |
||
64 | * @throws DeserializerLogicException |
||
65 | */ |
||
66 | public function decode(string $data, string $contentType): array |
||
70 | |||
71 | /** |
||
72 | * @param object|string $object |
||
73 | * @param array $data |
||
74 | * @param DenormalizerContextInterface|null $context |
||
75 | * @param string $path |
||
76 | * |
||
77 | * @return object |
||
78 | * |
||
79 | * @throws DeserializerLogicException |
||
80 | * @throws DeserializerRuntimeException |
||
81 | */ |
||
82 | public function denormalize($object, array $data, DenormalizerContextInterface $context = null, string $path = '') |
||
86 | } |
||
87 |