1 | <?php |
||
23 | class ReflectionProperty extends BaseReflectionProperty |
||
24 | { |
||
25 | use InitializationTrait; |
||
26 | |||
27 | /** |
||
28 | * Type of property node |
||
29 | * |
||
30 | * @var Property |
||
31 | */ |
||
32 | private $propertyTypeNode; |
||
33 | |||
34 | /** |
||
35 | * Concrete property node |
||
36 | * |
||
37 | * @var PropertyProperty |
||
38 | */ |
||
39 | private $propertyNode; |
||
40 | |||
41 | /** |
||
42 | * Name of the class |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | private $className; |
||
47 | |||
48 | /** |
||
49 | * Initializes a reflection for the property |
||
50 | * |
||
51 | * @param string $className Name of the class with properties |
||
52 | * @param string $propertyName Name of the property to reflect |
||
53 | * @param Property $propertyType Property type definition node |
||
54 | * @param PropertyProperty $propertyNode Concrete property definition (value, name) |
||
55 | */ |
||
56 | 6 | public function __construct( |
|
70 | |||
71 | /** |
||
72 | * Emulating original behaviour of reflection |
||
73 | */ |
||
74 | 1 | public function __debugInfo() |
|
81 | |||
82 | /** |
||
83 | * Return string representation of this little old property. |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | 1 | public function __toString() |
|
96 | |||
97 | /** |
||
98 | * {@inheritDoc} |
||
99 | */ |
||
100 | 3 | public function getDeclaringClass() |
|
104 | |||
105 | /** |
||
106 | * @inheritDoc |
||
107 | */ |
||
108 | 1 | public function getDocComment() |
|
114 | |||
115 | /** |
||
116 | * {@inheritDoc} |
||
117 | */ |
||
118 | 1 | public function getModifiers() |
|
136 | |||
137 | /** |
||
138 | * @inheritDoc |
||
139 | */ |
||
140 | 4 | public function getName() |
|
144 | |||
145 | /** |
||
146 | * @inheritDoc |
||
147 | */ |
||
148 | 4 | public function getValue($object = null) |
|
161 | |||
162 | /** |
||
163 | * @inheritDoc |
||
164 | */ |
||
165 | 1 | public function isDefault() |
|
169 | |||
170 | /** |
||
171 | * {@inheritDoc} |
||
172 | */ |
||
173 | 1 | public function isPrivate() |
|
177 | |||
178 | /** |
||
179 | * {@inheritDoc} |
||
180 | */ |
||
181 | 1 | public function isProtected() |
|
185 | |||
186 | /** |
||
187 | * {@inheritDoc} |
||
188 | */ |
||
189 | 1 | public function isPublic() |
|
193 | |||
194 | /** |
||
195 | * {@inheritDoc} |
||
196 | */ |
||
197 | 2 | public function isStatic() |
|
201 | |||
202 | /** |
||
203 | * {@inheritDoc} |
||
204 | */ |
||
205 | 2 | public function setAccessible($accessible) |
|
211 | |||
212 | /** |
||
213 | * @inheritDoc |
||
214 | */ |
||
215 | 1 | public function setValue($object, $value = null) |
|
221 | |||
222 | /** |
||
223 | * Parses properties from the concrete class node |
||
224 | * |
||
225 | * @param ClassLike $classLikeNode Class-like node |
||
226 | * @param string $fullClassName FQN of the class |
||
227 | * |
||
228 | * @return array|ReflectionProperty[] |
||
229 | */ |
||
230 | 5 | public static function collectFromClassNode(ClassLike $classLikeNode, $fullClassName) |
|
249 | |||
250 | /** |
||
251 | * Implementation of internal reflection initialization |
||
252 | * |
||
253 | * @return void |
||
254 | */ |
||
255 | 2 | protected function __initialize() |
|
259 | } |
||
260 |