| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ConfigurationConfigs |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array<mixed> |
||
| 15 | */ |
||
| 16 | private array $configs; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param array<mixed> $configs |
||
| 20 | */ |
||
| 21 | public function __construct(array $configs) |
||
| 22 | { |
||
| 23 | $this->configs = $configs; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $name |
||
| 28 | * |
||
| 29 | * @return bool |
||
| 30 | */ |
||
| 31 | public function hasConfigurationConfig(string $name): bool |
||
| 32 | { |
||
| 33 | return isset($this->configs[$name]); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $name |
||
| 38 | * |
||
| 39 | * @return array<string, mixed> |
||
| 40 | */ |
||
| 41 | public function getConfigurationConfig(string $name): array |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $name |
||
| 48 | * @param array<string, mixed> $config |
||
| 49 | */ |
||
| 50 | public function setConfigurationConfig(string $name, array $config): void |
||
| 53 | } |
||
| 54 | } |
||
| 55 |