Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ConfigurationResolver |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $configuration; |
||
17 | |||
18 | /** |
||
19 | * ConfigurationResolver constructor. |
||
20 | * |
||
21 | * @param array $configs |
||
22 | */ |
||
23 | 8 | public function __construct(array $configs) |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | 2 | public function getViewTypes(): array |
|
34 | { |
||
35 | 2 | return $this->configuration['view_types']; |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | 2 | public function getDefaultType(): string |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | 2 | public function getResolvableTypes(): array |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | 2 | public function getTypeName(): string |
|
62 |