| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | abstract class AbstractConfigurableEnvironment extends AbstractEnvironment implements ConfigurableEnvironmentInterface |
||
| 12 | { |
||
| 13 | /** @var ConfigurationBuilderInterface */ |
||
| 14 | private $config; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param array<string, mixed> $config |
||
| 18 | */ |
||
| 19 | public function __construct(array $config = []) |
||
| 20 | { |
||
| 21 | $this->config = static::createDefaultConfiguration(); |
||
| 22 | $this->config->merge($config); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return ConfigurationBuilderInterface |
||
| 27 | */ |
||
| 28 | public function getConfiguration(): ConfigurationInterface |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function injectEnvironmentAndConfigurationIfNeeded(object $object): void |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | abstract public static function createDefaultConfiguration(): ConfigurationBuilderInterface; |
||
| 43 | } |
||
| 44 |