Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
43 | public function put(string $name, PlainExtractorInterface $extractor) |
||
44 | { |
||
45 | if (isset($this->extractors[$name])) { |
||
46 | throw new OverflowException("Extractor with the same name ('{$name}') already exists"); |
||
47 | } |
||
48 | $this->extractors[$name] = $extractor; |
||
49 | } |
||
50 | } |
||
51 |