Pinq\Queries\Functions\ProjectionBase::getReturnValueExpression PHP Method

getReturnValueExpression() final public method

final public getReturnValueExpression ( ) : Expression | null
return Pinq\Expressions\Expression | null
    public final function getReturnValueExpression()
    {
        $this->verifyNotInternal(__FUNCTION__);
        return $this->returnValueExpression;
    }

Usage Example

 public function compileReturn(ProjectionBase $projectionFunction)
 {
     $returnExpression = $projectionFunction->getReturnValueExpression() ?: O\Expression::value(null);
     return $this->compile($returnExpression, $projectionFunction);
 }