1 | <?php |
||
13 | class RecursiveObjectNormalizer extends ObjectNormalizer |
||
14 | { |
||
15 | /** |
||
16 | * @var AnnotationReader |
||
17 | */ |
||
18 | private $annotationReader; |
||
19 | |||
20 | /** |
||
21 | * @var \ReflectionClass[] |
||
22 | */ |
||
23 | private $reflectionClasses; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | protected function instantiateObject( |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = []) |
||
53 | |||
54 | /** |
||
55 | * @param Type $type |
||
56 | * @param mixed $value |
||
57 | * @param string $format |
||
58 | * @param array $context |
||
59 | * |
||
60 | * @return array|object |
||
61 | */ |
||
62 | protected function getDenormalizedValue(Type $type, $value, $format, $context) |
||
76 | |||
77 | /** |
||
78 | * @param object $object |
||
79 | * @param string $attribute |
||
80 | * |
||
81 | * @return null|Type |
||
82 | */ |
||
83 | protected function getTypeAnnotation($object, $attribute) |
||
90 | |||
91 | /** |
||
92 | * @param object $object |
||
93 | * @param string $attribute |
||
94 | * |
||
95 | * @return bool |
||
96 | */ |
||
97 | protected function hasProperty($object, $attribute) |
||
101 | |||
102 | /** |
||
103 | * @return AnnotationReader |
||
104 | */ |
||
105 | public function getAnnotationReader() |
||
113 | |||
114 | /** |
||
115 | * @param AnnotationReader $annotationReader |
||
116 | */ |
||
117 | public function setAnnotationReader(AnnotationReader $annotationReader) |
||
121 | } |
||
122 |