Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 62.5% |
Changes | 0 |
1 | <?php |
||
8 | class Config |
||
9 | { |
||
10 | use Traits\GenerateContentTrait; |
||
11 | use Traits\HasEnviromentsTrait; |
||
12 | use Traits\HasPathsTrait; |
||
13 | |||
14 | protected $params; |
||
15 | |||
16 | /** |
||
17 | * Config constructor. |
||
18 | */ |
||
19 | 5 | public function __construct() |
|
20 | { |
||
21 | 5 | $this->params = [ |
|
22 | 'paths' => [ |
||
23 | 'migrations' => [], |
||
24 | 'seeds' => [], |
||
25 | ], |
||
26 | 'environments' => [], |
||
27 | ]; |
||
28 | 5 | } |
|
29 | |||
30 | /** |
||
31 | * @return static |
||
32 | */ |
||
33 | public static function fromConfig() |
||
34 | { |
||
35 | $config = new static(); |
||
36 | |||
37 | return $config; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 3 | public function toArray() |
|
46 | } |
||
47 | } |
||
48 |