Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class DriverSetup implements IDriverSetup |
||
13 | { |
||
14 | private bool $initializationEnabled = false; |
||
15 | private bool $linkerEnabled = false; |
||
16 | |||
17 | public function __construct( |
||
20 | } |
||
21 | |||
22 | public function setup(IDriver $driver): void |
||
23 | { |
||
24 | if ($this->initializationEnabled) { |
||
25 | $driver->initialize(); |
||
26 | } |
||
27 | |||
28 | if ($this->linkerEnabled) { |
||
29 | $this->linker->link($driver); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | public function enableInitialization(bool $enable): IDriverSetup |
||
37 | } |
||
38 | |||
39 | public function enableLinker(bool $enable): IDriverSetup |
||
45 |