Lines Matching defs:processor
33 public function add(DelimiterProcessorInterface $processor): void
35 $opening = $processor->getOpeningCharacter();
36 $closing = $processor->getClosingCharacter();
41 $this->addStaggeredDelimiterProcessorForChar($opening, $old, $processor);
43 $this->addDelimiterProcessorForChar($opening, $processor);
46 $this->addDelimiterProcessorForChar($opening, $processor);
47 $this->addDelimiterProcessorForChar($closing, $processor);
64 private function addDelimiterProcessorForChar(string $delimiterChar, DelimiterProcessorInterface $processor): void
67 throw new InvalidArgumentException(\sprintf('Delim processor for character "%s" already exists', $processor->getOpeningCharacter()));
70 $this->processorsByChar[$delimiterChar] = $processor;