Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class MetadataFactoryFactory implements MetadataFactoryFactoryInterface |
||
14 | { |
||
15 | 7 | public function createAnnotationMetadataFactory( |
|
16 | string $metadataClassName = ClassMetadata::class, |
||
17 | Reader $reader = null |
||
18 | ) { |
||
19 | 7 | return new MetadataFactory($this->createAnnotationMetadataDriver($metadataClassName, $reader)); |
|
20 | } |
||
21 | |||
22 | 2 | public function createYmlMetadataFactory(string $metadataPath, string $metadataClassName) |
|
23 | { |
||
24 | 2 | return new MetadataFactory($this->createYmlMetadataDriver($metadataPath, $metadataClassName)); |
|
25 | } |
||
26 | |||
27 | 7 | private function createAnnotationMetadataDriver( |
|
37 | } |
||
38 | |||
39 | 2 | private function createYmlMetadataDriver(string $metadataPath, string $metadataClassName): DriverInterface |
|
42 | } |
||
43 | } |
||
44 |