public static function from(Queries\IQuery $query, IExpressionProcessor $expressionProcessor)
    {
        if ($query instanceof Queries\IRequestQuery) {
            return new RequestQueryProcessor($expressionProcessor, $query);
        } elseif ($query instanceof Queries\IOperationQuery) {
            return new OperationQueryProcessor($expressionProcessor, $query);
        }
    }
public static function from(Queries\IQuery $query, IExpressionProcessor $expressionProcessor)
    {
        if ($query instanceof Queries\IRequestQuery) {
            return new RequestQueryProcessor($expressionProcessor, $query);
        } elseif ($query instanceof Queries\IOperationQuery) {
            return new OperationQueryProcessor($expressionProcessor, $query);
        }
    }
public static function from ( Queries \ IQuery $ query , IExpressionProcessor $ expressionProcessor ) { if ( $ query instanceof Queries \ IRequestQuery ) { return new RequestQueryProcessor ( $ expressionProcessor , $ query ) ; } elseif ( $ query instanceof Queries \ IOperationQuery ) { return new OperationQueryProcessor ( $ expressionProcessor , $ query ) ; } }
Builds a query processor from the supplied query.

@param Queries\IQuery       $query
@param IExpressionProcessor $expressionProcessor

@return OperationQueryProcessor|RequestQueryProcessor
Builds a query processor from the supplied query .