getArguments() as $argument) { $this->inspectOperator($argument); } } } /** * Allow optimizer steps to modify query operators * * @param ISearchOperator $operator * @return void */ public function processOperator(ISearchOperator &$operator) { if ($operator instanceof ISearchBinaryOperator) { foreach ($operator->getArguments() as $argument) { $this->processOperator($argument); } } } }