| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class EntityManagerConfigs |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param array<mixed> $configs |
||
| 11 | */ |
||
| 12 | public function __construct(private array $configs) |
||
| 13 | { |
||
| 14 | } |
||
| 15 | |||
| 16 | public function hasEntityManagerConfig(string $name): bool |
||
| 17 | { |
||
| 18 | return isset($this->configs[$name]); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array<string, mixed> |
||
| 23 | */ |
||
| 24 | public function getEntityManagerConfig(string $name): array |
||
| 25 | { |
||
| 26 | return $this->configs[$name] ?? []; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array<string, mixed> $config |
||
| 31 | */ |
||
| 32 | public function setEntityManagerConfig(string $name, array $config): void |
||
| 35 | } |
||
| 36 | } |
||
| 37 |