| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 84.62% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ArrayConnectionConfigurationLoader implements ConnectionLoaderInterface |
||
| 15 | { |
||
| 16 | /** @var null|string */ |
||
| 17 | private $filename; |
||
| 18 | |||
| 19 | 38 | public function __construct(?string $filename) |
|
| 20 | { |
||
| 21 | 38 | $this->filename = $filename; |
|
| 22 | 38 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Read the input and return a Configuration, returns null if the config |
||
| 26 | * is not supported. |
||
| 27 | * |
||
| 28 | * @throws InvalidArgumentException |
||
| 29 | */ |
||
| 30 | 38 | public function chosen() : ?Connection |
|
| 49 | } |
||
| 50 | } |
||
| 51 |