Pinq\Queries\Builders\ExpressionInterpreter::getSourceMethodCall PHP Method

getSourceMethodCall() final protected method

final protected getSourceMethodCall ( MethodCallExpression $methodExpression ) : MethodCallExpression
$methodExpression Pinq\Expressions\MethodCallExpression
return Pinq\Expressions\MethodCallExpression
    protected final function getSourceMethodCall(O\MethodCallExpression $methodExpression)
    {
        $sourceExpression = $methodExpression->getValue();
        if (!$sourceExpression instanceof O\MethodCallExpression) {
            throw new PinqException('Cannot get source method call expression: source is not a method call, %s given', get_class($methodExpression));
        }
        return $sourceExpression;
    }