Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __construct($config) |
||
20 | { |
||
21 | if (is_array($config)) { |
||
22 | $this->path = $config['path']; |
||
23 | $this->generate = $config['generate']; |
||
24 | $this->namespace = $config['namespace'] ?? $config['path']; |
||
25 | |||
26 | return; |
||
27 | } |
||
28 | |||
29 | $this->path = $config; |
||
30 | $this->generate = (bool) $config; |
||
31 | $this->namespace = $config; |
||
32 | } |
||
49 |