Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | final class ConfigurationFile implements EntityManagerLoader |
||
16 | { |
||
17 | /** @var string */ |
||
18 | private $filename; |
||
19 | |||
20 | 4 | public function __construct(string $filename) |
|
21 | { |
||
22 | 4 | $this->filename = $filename; |
|
23 | 4 | } |
|
24 | |||
25 | /** |
||
26 | * Read the input and return a Configuration, returns null if the config |
||
27 | * is not supported. |
||
28 | * |
||
29 | * @throws InvalidConfiguration |
||
30 | */ |
||
31 | 4 | public function getEntityManager() : EntityManagerInterface |
|
48 | } |
||
49 | } |
||
50 |