1 | <?php |
||
17 | abstract class ComponentMetadata |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $className; |
||
23 | |||
24 | /** |
||
25 | * @var ComponentMetadata|null |
||
26 | */ |
||
27 | protected $parent; |
||
28 | |||
29 | /** |
||
30 | * The ReflectionClass instance of the component class. |
||
31 | * |
||
32 | * @var \ReflectionClass|null |
||
33 | */ |
||
34 | protected $reflectionClass; |
||
35 | |||
36 | /** |
||
37 | * @var CacheMetadata|null |
||
38 | */ |
||
39 | protected $cache; |
||
40 | |||
41 | /** |
||
42 | * @var array<string, Property> |
||
43 | */ |
||
44 | protected $declaredProperties = []; |
||
45 | |||
46 | /** |
||
47 | * ComponentMetadata constructor. |
||
48 | * |
||
49 | * @param string $className |
||
50 | * @param ClassMetadataBuildingContext $metadataBuildingContext |
||
51 | */ |
||
52 | public function __construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext) |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getClassName() : string |
||
67 | |||
68 | /** |
||
69 | * @param ComponentMetadata $parent |
||
70 | */ |
||
71 | public function setParent(ComponentMetadata $parent) : void |
||
75 | |||
76 | /** |
||
77 | * @return ComponentMetadata|null |
||
78 | */ |
||
79 | public function getParent() : ?ComponentMetadata |
||
83 | |||
84 | /** |
||
85 | * @return \ReflectionClass|null |
||
86 | */ |
||
87 | public function getReflectionClass() : ?\ReflectionClass |
||
91 | |||
92 | /** |
||
93 | * @param CacheMetadata|null $cache |
||
94 | * |
||
95 | * @return void |
||
96 | */ |
||
97 | public function setCache(?CacheMetadata $cache = null) : void |
||
101 | |||
102 | /** |
||
103 | * @return CacheMetadata|null |
||
104 | */ |
||
105 | public function getCache(): ?CacheMetadata |
||
109 | |||
110 | /** |
||
111 | * @return \ArrayIterator |
||
112 | */ |
||
113 | public function getDeclaredPropertiesIterator() : \ArrayIterator |
||
117 | |||
118 | /** |
||
119 | * @param Property $property |
||
120 | * |
||
121 | * @throws \ReflectionException |
||
122 | * @throws MappingException |
||
123 | */ |
||
124 | public function addDeclaredProperty(Property $property) : void |
||
150 | |||
151 | /** |
||
152 | * @param string $propertyName |
||
153 | * |
||
154 | * @return bool |
||
155 | */ |
||
156 | public function hasDeclaredProperty(string $propertyName) : bool |
||
160 | |||
161 | /** |
||
162 | * @return \Iterator |
||
163 | */ |
||
164 | public function getPropertiesIterator() : \Iterator |
||
179 | |||
180 | /** |
||
181 | * @param string $propertyName |
||
182 | * |
||
183 | * @return null|Property |
||
184 | */ |
||
185 | public function getProperty(string $propertyName) : ?Property |
||
197 | |||
198 | /** |
||
199 | * @param string $propertyName |
||
200 | * |
||
201 | * @return bool |
||
202 | */ |
||
203 | public function hasProperty(string $propertyName) : bool |
||
211 | |||
212 | /** |
||
213 | * @return \ArrayIterator |
||
214 | */ |
||
215 | public function getColumnsIterator() : \ArrayIterator |
||
238 | |||
239 | /** |
||
240 | * @param string|null $className |
||
241 | * |
||
242 | * @return string|null null if the input value is null |
||
243 | */ |
||
244 | public function fullyQualifiedClassName(?string $className) : ?string |
||
258 | } |
||
259 |