Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | final class ConnectionHelperLoader implements ConnectionLoader |
||
18 | { |
||
19 | /** @var string */ |
||
20 | private $helperName; |
||
21 | |||
22 | /** @var HelperSet */ |
||
23 | private $helperSet; |
||
24 | |||
25 | /** @var ConnectionLoader */ |
||
26 | private $fallback; |
||
27 | |||
28 | 6 | public function __construct(string $helperName, ConnectionLoader $fallback, ?HelperSet $helperSet = null) |
|
33 | 6 | } |
|
34 | |||
35 | /** |
||
36 | * Read the input and return a Configuration, returns null if the config |
||
37 | * is not supported. |
||
38 | */ |
||
39 | 4 | public function getConnection() : Connection |
|
52 |