Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class Eager implements Container |
||
15 | { |
||
16 | /** @var Parser[] */ |
||
17 | private array $parsers = []; |
||
18 | |||
19 | public static function container(): Container |
||
20 | { |
||
21 | return new self(); |
||
22 | } |
||
23 | |||
24 | public function offsetGet($name): Parser |
||
30 | } |
||
31 | |||
32 | public function offsetSet($name, $parser): void |
||
33 | { |
||
34 | $this->parsers[$name] = $parser; |
||
35 | } |
||
36 | |||
37 | public function offsetExists($name): bool |
||
40 | } |
||
41 | |||
42 | public function offsetUnset($name): void |
||
45 | } |
||
46 | } |
||
47 |