protected function getLogicalResult(callable $logicalAndFunction, callable $logicalOrFunction)
    {
        switch ($this->operator) {
            case ConditionParser::LOGICAL_AND:
                $result = call_user_func($logicalAndFunction);
                break;
            case ConditionParser::LOGICAL_OR:
                $result = call_user_func($logicalOrFunction);
                break;
            default:
                throw InvalidConfigurationException::wrongBooleanNodeOperator($this->operator);
        }

        return $result;
    }
protected function getLogicalResult(callable $logicalAndFunction, callable $logicalOrFunction)
    {
        switch ($this->operator) {
            case ConditionParser::LOGICAL_AND:
                $result = call_user_func($logicalAndFunction);
                break;
            case ConditionParser::LOGICAL_OR:
                $result = call_user_func($logicalOrFunction);
                break;
            default:
                throw InvalidConfigurationException::wrongBooleanNodeOperator($this->operator);
        }

        return $result;
    }
protected function getLogicalResult ( callable $ logicalAndFunction , callable $ logicalOrFunction ) { switch ( $ this -> operator ) { case ConditionParser :: LOGICAL_AND : $ result = call_user_func ( $ logicalAndFunction ) ; break ; case ConditionParser :: LOGICAL_OR : $ result = call_user_func ( $ logicalOrFunction ) ; break ; default : throw InvalidConfigurationException :: wrongBooleanNodeOperator ( $ this -> operator ) ; } return $ result ; }
Global function to get the result of a logical operation, the processor
does not matter.

@param callable $logicalAndFunction
@param callable $logicalOrFunction
@return null
@throws InvalidConfigurationException
Global function to get the result of a logical operation the processor does not matter .