1 | <?php |
||
24 | class ReflectionProperty extends BaseReflectionProperty |
||
25 | { |
||
26 | use InitializationTrait, InternalPropertiesEmulationTrait; |
||
27 | |||
28 | /** |
||
29 | * Type of property node |
||
30 | * |
||
31 | * @var Property |
||
32 | */ |
||
33 | private $propertyTypeNode; |
||
34 | |||
35 | /** |
||
36 | * Concrete property node |
||
37 | * |
||
38 | * @var PropertyProperty |
||
39 | */ |
||
40 | private $propertyNode; |
||
41 | |||
42 | /** |
||
43 | * Name of the class |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | private $className; |
||
48 | |||
49 | /** |
||
50 | * Initializes a reflection for the property |
||
51 | * |
||
52 | * @param string $className Name of the class with properties |
||
53 | * @param string $propertyName Name of the property to reflect |
||
54 | * @param Property $propertyType Property type definition node |
||
55 | * @param PropertyProperty $propertyNode Concrete property definition (value, name) |
||
56 | */ |
||
57 | 6 | public function __construct( |
|
74 | |||
75 | /** |
||
76 | * Emulating original behaviour of reflection |
||
77 | */ |
||
78 | 1 | public function __debugInfo() |
|
85 | |||
86 | /** |
||
87 | * Return string representation of this little old property. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 1 | public function __toString() |
|
100 | |||
101 | /** |
||
102 | * {@inheritDoc} |
||
103 | */ |
||
104 | 3 | public function getDeclaringClass() |
|
108 | |||
109 | /** |
||
110 | * @inheritDoc |
||
111 | */ |
||
112 | 1 | public function getDocComment() |
|
118 | |||
119 | /** |
||
120 | * {@inheritDoc} |
||
121 | */ |
||
122 | 2 | public function getModifiers() |
|
140 | |||
141 | /** |
||
142 | * @inheritDoc |
||
143 | */ |
||
144 | 4 | public function getName() |
|
148 | |||
149 | /** |
||
150 | * @inheritDoc |
||
151 | */ |
||
152 | 4 | public function getValue($object = null) |
|
168 | |||
169 | /** |
||
170 | * @inheritDoc |
||
171 | */ |
||
172 | 1 | public function isDefault() |
|
176 | |||
177 | /** |
||
178 | * {@inheritDoc} |
||
179 | */ |
||
180 | 2 | public function isPrivate() |
|
184 | |||
185 | /** |
||
186 | * {@inheritDoc} |
||
187 | */ |
||
188 | 2 | public function isProtected() |
|
192 | |||
193 | /** |
||
194 | * {@inheritDoc} |
||
195 | */ |
||
196 | 2 | public function isPublic() |
|
200 | |||
201 | /** |
||
202 | * {@inheritDoc} |
||
203 | */ |
||
204 | 2 | public function isStatic() |
|
208 | |||
209 | /** |
||
210 | * {@inheritDoc} |
||
211 | */ |
||
212 | 2 | public function setAccessible($accessible) |
|
218 | |||
219 | /** |
||
220 | * @inheritDoc |
||
221 | */ |
||
222 | 1 | public function setValue($object, $value = null) |
|
228 | |||
229 | /** |
||
230 | * Parses properties from the concrete class node |
||
231 | * |
||
232 | * @param ClassLike $classLikeNode Class-like node |
||
233 | * @param string $fullClassName FQN of the class |
||
234 | * |
||
235 | * @return array|ReflectionProperty[] |
||
236 | */ |
||
237 | 5 | public static function collectFromClassNode(ClassLike $classLikeNode, $fullClassName) |
|
257 | |||
258 | /** |
||
259 | * Implementation of internal reflection initialization |
||
260 | * |
||
261 | * @return void |
||
262 | */ |
||
263 | 2 | protected function __initialize() |
|
267 | } |
||
268 |