1 | <?php |
||
25 | class Context implements ContextInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var NavigatorInterface |
||
29 | */ |
||
30 | private $navigator; |
||
31 | |||
32 | /** |
||
33 | * @var VisitorInterface |
||
34 | */ |
||
35 | private $visitor; |
||
36 | |||
37 | /** |
||
38 | * @var int |
||
39 | */ |
||
40 | private $direction; |
||
41 | |||
42 | /** |
||
43 | * @var bool |
||
44 | */ |
||
45 | private $ignoreNull = false; |
||
46 | |||
47 | /** |
||
48 | * @var ExclusionStrategyInterface |
||
49 | */ |
||
50 | private $exclusionStrategy; |
||
51 | |||
52 | /** |
||
53 | * @var NamingStrategyInterface |
||
54 | */ |
||
55 | private $namingStrategy; |
||
56 | |||
57 | /** |
||
58 | * @var mixed[] |
||
59 | */ |
||
60 | private $dataStack; |
||
61 | |||
62 | /** |
||
63 | * @var MetadataInterface[] |
||
64 | */ |
||
65 | private $metadataStack; |
||
66 | |||
67 | /** |
||
68 | * @param ExclusionStrategyInterface|null $exclusionStrategy |
||
69 | * @param NamingStrategyInterface|null $namingStrategy |
||
70 | */ |
||
71 | 594 | public function __construct( |
|
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | 738 | public function initialize(NavigatorInterface $navigator, VisitorInterface $visitor, $direction) |
|
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | 738 | public function getNavigator() |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 738 | public function setNavigator(NavigatorInterface $navigator) |
|
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 738 | public function getVisitor() |
|
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | 738 | public function setVisitor(VisitorInterface $visitor) |
|
127 | |||
128 | /** |
||
129 | * {@inheritdoc} |
||
130 | */ |
||
131 | 72 | public function getDirection() |
|
135 | |||
136 | /** |
||
137 | * {@inheritdoc} |
||
138 | */ |
||
139 | 738 | public function setDirection($direction) |
|
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | 147 | public function isNullIgnored() |
|
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | public function setIgnoreNull($ignoreNull) |
||
163 | |||
164 | /** |
||
165 | * {@inheritdoc} |
||
166 | */ |
||
167 | 600 | public function getExclusionStrategy() |
|
171 | |||
172 | /** |
||
173 | * {@inheritdoc} |
||
174 | */ |
||
175 | public function setExclusionStrategy(ExclusionStrategyInterface $exclusionStrategy) |
||
181 | |||
182 | /** |
||
183 | * {@inheritdoc} |
||
184 | */ |
||
185 | 576 | public function getNamingStrategy() |
|
189 | |||
190 | /** |
||
191 | * {@inheritdoc} |
||
192 | */ |
||
193 | public function setNamingStrategy(NamingStrategyInterface $namingStrategy) |
||
199 | |||
200 | /** |
||
201 | * {@inheritdoc} |
||
202 | */ |
||
203 | 18 | public function getDataStack() |
|
207 | |||
208 | /** |
||
209 | * {@inheritdoc} |
||
210 | */ |
||
211 | 738 | public function setDataStack(array $dataStack) |
|
217 | |||
218 | /** |
||
219 | * {@inheritdoc} |
||
220 | */ |
||
221 | 18 | public function getMetadataStack() |
|
225 | |||
226 | /** |
||
227 | * {@inheritdoc} |
||
228 | */ |
||
229 | 738 | public function setMetadataStack(array $metadataStack) |
|
235 | |||
236 | /** |
||
237 | * {@inheritdoc} |
||
238 | */ |
||
239 | 600 | public function enterScope($data, MetadataInterface $metadata) |
|
244 | |||
245 | /** |
||
246 | * {@inheritdoc} |
||
247 | */ |
||
248 | 600 | public function leaveScope() |
|
253 | } |
||
254 |