1 | <?php |
||
20 | class MappingCollector implements CollectorInterface, AutoHideInterface, Serializable |
||
21 | { |
||
22 | /** |
||
23 | * Collector priority |
||
24 | */ |
||
25 | public const PRIORITY = 10; |
||
26 | |||
27 | /** @var string */ |
||
28 | protected $name; |
||
29 | |||
30 | /** @var ClassMetadataFactory|null */ |
||
31 | protected $classMetadataFactory = []; |
||
32 | |||
33 | /** @var ClassMetadata[] indexed by class name */ |
||
34 | protected $classes = []; |
||
35 | |||
36 | public function __construct(ClassMetadataFactory $classMetadataFactory, string $name) |
||
41 | |||
42 | /** |
||
43 | * {@inheritDoc} |
||
44 | */ |
||
45 | 1 | public function getName() |
|
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | */ |
||
53 | 1 | public function getPriority() |
|
57 | |||
58 | /** |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | 2 | public function collect(MvcEvent $mvcEvent) |
|
77 | |||
78 | /** |
||
79 | * {@inheritDoc} |
||
80 | */ |
||
81 | 1 | public function canHide() |
|
85 | |||
86 | /** |
||
87 | * {@inheritDoc} |
||
88 | */ |
||
89 | 1 | public function serialize() |
|
98 | |||
99 | /** |
||
100 | * {@inheritDoc} |
||
101 | */ |
||
102 | 1 | public function unserialize($serialized) |
|
108 | |||
109 | /** |
||
110 | * @return ClassMetadata[] |
||
111 | */ |
||
112 | 1 | public function getClasses() : array |
|
116 | } |
||
117 |