| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 2037 | public function add(DelimiterProcessorInterface $processor) |
|
| 25 | { |
||
| 26 | 2037 | if (isset($this->processorsByChar[$processor->getCharacter()])) { |
|
| 27 | 3 | throw new \InvalidArgumentException(sprintf('Delim processor for character "%s" already exists', $processor->getCharacter())); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2037 | $this->processorsByChar[$processor->getCharacter()] = $processor; |
|
| 31 | 2037 | } |
|
| 32 | |||
| 38 |