Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 0 |
1 | <?php |
||
11 | class Generator implements GeneratorInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $config; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $confDir; |
||
22 | |||
23 | /** |
||
24 | * @var ConverterInterface |
||
25 | */ |
||
26 | private $converter; |
||
27 | |||
28 | /** |
||
29 | * Generator constructor. |
||
30 | * |
||
31 | * @param array $config |
||
32 | * @param string $confDir |
||
33 | * @param ConverterInterface $converter |
||
34 | */ |
||
35 | 1 | public function __construct(array $config, string $confDir, ConverterInterface $converter) |
|
36 | { |
||
37 | 1 | $this->config = $config; |
|
38 | 1 | $this->confDir = $confDir; |
|
39 | 1 | $this->converter = $converter; |
|
40 | 1 | } |
|
41 | |||
42 | /** |
||
43 | * @throws \Xervice\Database\Business\Exception\DatabaseConfigException |
||
44 | */ |
||
45 | 1 | public function generate(): void |
|
53 | ); |
||
54 | 1 | } |
|
56 |