Lines Matching defs:processor
46 public function __construct(string $char, DelimiterProcessorInterface $processor)
49 $this->add($processor);
68 * Adds the given processor to this staggered delimiter processor
72 public function add(DelimiterProcessorInterface $processor): void
74 $len = $processor->getMinLength();
80 $this->processors[$len] = $processor;
98 // Find the "longest" processor which can handle this length
99 foreach ($this->processors as $processor) {
100 if ($processor->getMinLength() <= $len) {
101 return $processor;