Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class Settings |
||
6 | { |
||
7 | /** @var array<string, mixed> */ |
||
8 | private array $settings; |
||
9 | |||
10 | /** |
||
11 | * @param array<string, mixed> $settings |
||
12 | */ |
||
13 | 17 | public function __construct(array $settings) |
|
14 | { |
||
15 | 17 | $this->settings = $settings; |
|
16 | } |
||
17 | |||
18 | /** |
||
19 | * Get settings by key. |
||
20 | * |
||
21 | * @param string $key |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | 17 | public function get(string $key): mixed |
|
28 | } |
||
29 | } |
||
30 |