Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class File implements SourceConfiguration |
||
10 | { |
||
11 | protected $name = 'cart'; |
||
12 | |||
13 | 3 | public function __construct(string $path = '') |
|
19 | } |
||
20 | 2 | } |
|
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $pathToFile; |
||
25 | |||
26 | /** |
||
27 | * get array with configuration |
||
28 | * @return array |
||
29 | */ |
||
30 | |||
31 | 2 | public function get() : array |
|
32 | { |
||
33 | 2 | $configuration = require $this->pathToFile; |
|
34 | 2 | return $configuration; |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * Get name |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | 2 | public function getName(): string |
|
45 | } |
||
46 | } |