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 mixed[] |
||
44 | */ |
||
45 | private $dataStack; |
||
46 | |||
47 | /** |
||
48 | * @var MetadataInterface[] |
||
49 | */ |
||
50 | private $metadataStack; |
||
51 | |||
52 | /** |
||
53 | * @var ExclusionStrategyInterface |
||
54 | */ |
||
55 | private $exclusionStrategy; |
||
56 | |||
57 | /** |
||
58 | * @var NamingStrategyInterface |
||
59 | */ |
||
60 | private $namingStrategy; |
||
61 | |||
62 | /** |
||
63 | * @param ExclusionStrategyInterface|null $exclusionStrategy |
||
64 | * @param NamingStrategyInterface|null $namingStrategy |
||
65 | */ |
||
66 | 468 | public function __construct( |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 549 | public function initialize(NavigatorInterface $navigator, VisitorInterface $visitor, $direction) |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 549 | public function getNavigator() |
|
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | 549 | public function setNavigator(NavigatorInterface $navigator) |
|
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | 549 | public function getVisitor() |
|
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | 549 | public function setVisitor(VisitorInterface $visitor) |
|
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | 72 | public function getDirection() |
|
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | 549 | public function setDirection($direction) |
|
140 | |||
141 | /** |
||
142 | * {@inheritdoc} |
||
143 | */ |
||
144 | 411 | public function getExclusionStrategy() |
|
148 | |||
149 | /** |
||
150 | * {@inheritdoc} |
||
151 | */ |
||
152 | public function setExclusionStrategy(ExclusionStrategyInterface $exclusionStrategy) |
||
158 | |||
159 | /** |
||
160 | * {@inheritdoc} |
||
161 | */ |
||
162 | 387 | public function getNamingStrategy() |
|
166 | |||
167 | /** |
||
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | public function setNamingStrategy(NamingStrategyInterface $namingStrategy) |
||
176 | |||
177 | /** |
||
178 | * {@inheritdoc} |
||
179 | */ |
||
180 | 18 | public function getDataStack() |
|
184 | |||
185 | /** |
||
186 | * {@inheritdoc} |
||
187 | */ |
||
188 | 549 | public function setDataStack(array $dataStack) |
|
194 | |||
195 | /** |
||
196 | * {@inheritdoc} |
||
197 | */ |
||
198 | 18 | public function getMetadataStack() |
|
202 | |||
203 | /** |
||
204 | * {@inheritdoc} |
||
205 | */ |
||
206 | 549 | public function setMetadataStack(array $metadataStack) |
|
212 | |||
213 | /** |
||
214 | * {@inheritdoc} |
||
215 | */ |
||
216 | 411 | public function enterScope($data, MetadataInterface $metadata) |
|
221 | |||
222 | /** |
||
223 | * {@inheritdoc} |
||
224 | */ |
||
225 | 411 | public function leaveScope() |
|
230 | } |
||
231 |