1 | <?php |
||
20 | final class MetadataFactory |
||
21 | { |
||
22 | /** |
||
23 | * Reads annotations from a class, property, or method and returns |
||
24 | * an [@see AnnotationSet] |
||
25 | * |
||
26 | * @var AnnotationCollectionFactory |
||
27 | */ |
||
28 | private $annotationCollectionFactory; |
||
29 | |||
30 | /** |
||
31 | * Constructor |
||
32 | * |
||
33 | * @param AnnotationCollectionFactory $annotationCollectionFactory |
||
34 | */ |
||
35 | 2 | public function __construct(AnnotationCollectionFactory $annotationCollectionFactory) |
|
39 | |||
40 | /** |
||
41 | * Create class metadata |
||
42 | * |
||
43 | * @param string $className |
||
44 | * @return ClassMetadata |
||
45 | * @throws \InvalidArgumentException If the type does not exist |
||
46 | */ |
||
47 | 2 | public function createClassMetadata(string $className): ClassMetadata |
|
51 | |||
52 | /** |
||
53 | * Creates property metadata |
||
54 | * |
||
55 | * @param Property $property |
||
56 | * @param ClassMetadata $classMetadata |
||
57 | * @return PropertyMetadata |
||
58 | */ |
||
59 | 1 | public function createPropertyMetadata(Property $property, ClassMetadata $classMetadata): PropertyMetadata |
|
71 | } |
||
72 |