1 | <?php |
||
16 | abstract class ComponentMetadata |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $className; |
||
22 | |||
23 | /** |
||
24 | * @var ComponentMetadata|null |
||
25 | */ |
||
26 | protected $parent; |
||
27 | |||
28 | /** |
||
29 | * The ReflectionClass instance of the component class. |
||
30 | * |
||
31 | * @var \ReflectionClass|null |
||
32 | */ |
||
33 | protected $reflectionClass; |
||
34 | |||
35 | /** |
||
36 | * @var CacheMetadata|null |
||
37 | */ |
||
38 | protected $cache; |
||
39 | |||
40 | /** |
||
41 | * @var array<string, Property> |
||
42 | */ |
||
43 | protected $declaredProperties = []; |
||
44 | |||
45 | /** |
||
46 | * ComponentMetadata constructor. |
||
47 | * |
||
48 | * @param string $className |
||
49 | * @param ClassMetadataBuildingContext $metadataBuildingContext |
||
50 | */ |
||
51 | public function __construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext) |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getClassName() : string |
||
66 | |||
67 | /** |
||
68 | * @param ComponentMetadata $parent |
||
69 | */ |
||
70 | public function setParent(ComponentMetadata $parent) : void |
||
74 | |||
75 | /** |
||
76 | * @return ComponentMetadata|null |
||
77 | */ |
||
78 | public function getParent() : ?ComponentMetadata |
||
82 | |||
83 | /** |
||
84 | * @return \ReflectionClass|null |
||
85 | */ |
||
86 | public function getReflectionClass() : ?\ReflectionClass |
||
90 | |||
91 | /** |
||
92 | * @param CacheMetadata|null $cache |
||
93 | * |
||
94 | * @return void |
||
95 | */ |
||
96 | public function setCache(?CacheMetadata $cache = null) : void |
||
100 | |||
101 | /** |
||
102 | * @return CacheMetadata|null |
||
103 | */ |
||
104 | public function getCache(): ?CacheMetadata |
||
108 | |||
109 | /** |
||
110 | * @return iterable |
||
111 | */ |
||
112 | public function getDeclaredPropertiesIterator() : iterable |
||
118 | |||
119 | /** |
||
120 | * @param Property $property |
||
121 | * |
||
122 | * @throws \ReflectionException |
||
123 | * @throws MappingException |
||
124 | */ |
||
125 | public function addDeclaredProperty(Property $property) : void |
||
147 | |||
148 | /** |
||
149 | * @param string $propertyName |
||
150 | * |
||
151 | * @return bool |
||
152 | */ |
||
153 | public function hasDeclaredProperty(string $propertyName) : bool |
||
157 | |||
158 | /** |
||
159 | * @return iterable |
||
160 | */ |
||
161 | public function getPropertiesIterator() : iterable |
||
169 | |||
170 | /** |
||
171 | * @param string $propertyName |
||
172 | * |
||
173 | * @return null|Property |
||
174 | */ |
||
175 | public function getProperty(string $propertyName) : ?Property |
||
187 | |||
188 | /** |
||
189 | * @param string $propertyName |
||
190 | * |
||
191 | * @return bool |
||
192 | */ |
||
193 | public function hasProperty(string $propertyName) : bool |
||
201 | |||
202 | /** |
||
203 | * @return \ArrayIterator |
||
204 | */ |
||
205 | public function getColumnsIterator() : \ArrayIterator |
||
228 | |||
229 | /** |
||
230 | * @param string|null $className |
||
231 | * |
||
232 | * @return string|null null if the input value is null |
||
233 | */ |
||
234 | public function fullyQualifiedClassName(?string $className) : ?string |
||
248 | } |
||
249 |