1 | <?php |
||
19 | class ClassMetadata implements ClassMetadataInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | * |
||
24 | * @internal This property is public in order to reduce the size of the |
||
25 | * class' serialized representation. Do not access it. Use |
||
26 | * {@link getName()} instead. |
||
27 | */ |
||
28 | public $name; |
||
29 | |||
30 | /** |
||
31 | * @var AttributeMetadataInterface[] |
||
32 | * |
||
33 | * @internal This property is public in order to reduce the size of the |
||
34 | * class' serialized representation. Do not access it. Use |
||
35 | * {@link getAttributesMetadata()} instead. |
||
36 | */ |
||
37 | public $attributesMetadata = array(); |
||
38 | |||
39 | /** |
||
40 | * @var \ReflectionClass |
||
41 | */ |
||
42 | private $reflClass; |
||
43 | |||
44 | /** |
||
45 | * Constructs a metadata for the given class. |
||
46 | * |
||
47 | * @param string $class |
||
48 | */ |
||
49 | public function __construct($class) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getName() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function getAttributesMetadata() |
||
77 | |||
78 | private $classAnnotations = []; |
||
79 | |||
80 | /** |
||
81 | * @param ClassAnnotationInterface $classAnnotation |
||
82 | */ |
||
83 | public function addClassAnnotation(ClassAnnotationInterface $classAnnotation) |
||
89 | |||
90 | /** |
||
91 | * @return array |
||
92 | */ |
||
93 | public function getClassAnnotations() |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function merge(ClassMetadataInterface $classMetadata) |
||
119 | |||
120 | /** |
||
121 | * {@inheritdoc} |
||
122 | */ |
||
123 | public function getReflectionClass() |
||
131 | |||
132 | /** |
||
133 | * Returns the names of the properties that should be serialized. |
||
134 | * |
||
135 | * @return string[] |
||
136 | */ |
||
137 | public function __sleep() |
||
145 | } |