/** * @param Node $operand * * @return bool */ private function isPropertyAccessOperator(Node $operand) { if (!$operand instanceof OperatorNode) { return false; } return $operand->getOperator() instanceof PropertyAccessOperator; }
/** * @param Node $node * * @return bool */ private function isFilterOperator(Node $node) { return $node instanceof OperatorNode && $node->getOperator() instanceof FilterOperator; }