Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | abstract class AbstractFileDriver implements AdvancedDriverInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var FileLocatorInterface|FileLocator |
||
18 | */ |
||
19 | private $locator; |
||
20 | |||
21 | 4 | public function __construct(FileLocatorInterface $locator) |
|
24 | 4 | } |
|
25 | |||
26 | 2 | public function loadMetadataForClass(\ReflectionClass $class): ?ClassMetadata |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | 2 | public function getAllClassNames(): array |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * Parses the content of the file, and converts it to the desired metadata. |
||
49 | */ |
||
50 | abstract protected function loadMetadataFromFile(\ReflectionClass $class, string $file): ?ClassMetadata; |
||
51 | |||
52 | /** |
||
53 | * Returns the extension of the file. |
||
54 | */ |
||
55 | abstract protected function getExtension(): string; |
||
56 | } |
||
57 |