1 | <?php |
||
26 | abstract class AbstractNode implements ElementInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $options; |
||
32 | |||
33 | /** |
||
34 | * @var mixed |
||
35 | */ |
||
36 | protected $error; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function getLabel() |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getOption($option) |
||
53 | |||
54 | /** |
||
55 | * Checks whether element has property_path option |
||
56 | * |
||
57 | * @return bool |
||
58 | */ |
||
59 | public function hasPropertyPath() |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getPropertyPath($indexNotation = false) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function getTransformer() |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function hasTransformer() |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function getName() |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function getDefaultValue() |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function hasOption($option) |
||
125 | |||
126 | public function getError() |
||
130 | |||
131 | public function setError($error) |
||
135 | |||
136 | /** |
||
137 | * {@inheritdoc} |
||
138 | */ |
||
139 | public function getOptions() |
||
143 | |||
144 | /** |
||
145 | * {@inheritdoc} |
||
146 | */ |
||
147 | public function setOptions(array $options = []) |
||
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | public function configureOptions(OptionsResolver $resolver) |
||
177 | |||
178 | /** |
||
179 | * Returns friendly element type used for example in Twig macros |
||
180 | * |
||
181 | * @return mixed|string |
||
182 | */ |
||
183 | protected function getElementType() |
||
192 | |||
193 | /** |
||
194 | * Returns FQCN for element |
||
195 | * |
||
196 | * @param ElementInterface $element |
||
197 | * |
||
198 | * @return string |
||
199 | */ |
||
200 | protected function getElementClass(ElementInterface $element) |
||
204 | |||
205 | /** |
||
206 | * {@inheritdoc} |
||
207 | */ |
||
208 | public function prepareAttributesCollection(AttributeCollection $collection) |
||
215 | |||
216 | /** |
||
217 | * Returns element javascript-friendly name |
||
218 | * |
||
219 | * @param ElementInterface $element |
||
220 | * |
||
221 | * @return string |
||
222 | */ |
||
223 | protected function getJavascriptNodeName(ElementInterface $element) |
||
230 | |||
231 | /** |
||
232 | * Prepares repetition options for element |
||
233 | * |
||
234 | * @return array |
||
235 | */ |
||
236 | protected function prepareRepetitions() |
||
243 | |||
244 | /** |
||
245 | * @return \Symfony\Component\PropertyAccess\PropertyAccessor |
||
246 | */ |
||
247 | protected function getPropertyAccessor() |
||
251 | } |
||
252 |