| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Container extends AbstractContainer |
||
| 10 | { |
||
| 11 | const ENV_PREFIX = 'TEEBOT__'; |
||
| 12 | |||
| 13 | public function __construct(array $config) |
||
| 14 | { |
||
| 15 | parent::__construct($config); |
||
| 16 | |||
| 17 | $this->values['events'] = $this->hydrateEventConfigItems($this->values['events']); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Creates an event configuration item value objects from plain arrays |
||
| 22 | * |
||
| 23 | * @param array $events |
||
| 24 | * |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | protected function hydrateEventConfigItems(array $events) |
||
| 36 | } |
||
| 37 | } |
||
| 38 |