1 | <?php |
||
21 | abstract class AbstractGenericVisitor extends AbstractVisitor |
||
22 | { |
||
23 | /** |
||
24 | * @var mixed[] |
||
25 | */ |
||
26 | private $stack; |
||
27 | |||
28 | /** |
||
29 | * @var mixed |
||
30 | */ |
||
31 | protected $result; |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 1252 | public function prepare($data, ContextInterface $context) |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 256 | public function visitArray($data, TypeMetadataInterface $type, ContextInterface $context) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 1148 | public function visitData($data, TypeMetadataInterface $type, ContextInterface $context) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 920 | public function startVisitingObject($data, ClassMetadataInterface $class, ContextInterface $context) |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 920 | public function finishVisitingObject($data, ClassMetadataInterface $class, ContextInterface $context) |
|
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | 568 | public function getResult() |
|
104 | |||
105 | /** |
||
106 | * @param string $class |
||
107 | * |
||
108 | * @return mixed |
||
109 | */ |
||
110 | abstract protected function createResult($class); |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | 156 | protected function doVisitArray($data, TypeMetadataInterface $type, ContextInterface $context) |
|
136 | |||
137 | 996 | private function enterScope() |
|
141 | |||
142 | /** |
||
143 | * @return mixed |
||
144 | */ |
||
145 | 996 | private function leaveScope() |
|
156 | } |
||
157 |