/** * Moves forward to next applicable processor */ protected function nextApplicable() { $this->index++; while ($this->index <= $this->maxIndex) { $applicable = $this->applicableChecker->isApplicable($this->context, $this->processors[$this->action][$this->index]['attributes']); if ($applicable !== ApplicableCheckerInterface::NOT_APPLICABLE) { break; } $this->index++; } }