| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 58.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ContainerConfig |
||
| 8 | { |
||
| 9 | private $config; |
||
| 10 | |||
| 11 | 13 | public function __construct(array $config) |
|
| 14 | 13 | } |
|
| 15 | |||
| 16 | 13 | public function get(string $id) |
|
| 17 | { |
||
| 18 | 13 | return $this->config[$id]; |
|
| 19 | } |
||
| 20 | |||
| 21 | 13 | public function has($id): bool |
|
| 24 | } |
||
| 25 | |||
| 26 | public function unset(string $id): void |
||
| 27 | { |
||
| 28 | unset($this->config[$id]); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function set(string $id, $param): void |
||
| 34 | } |
||
| 35 | } |
||
| 36 |