Pinq\Queries\Requests\ProjectionRequestBase::updateProjection PHP Method

updateProjection() public method

public updateProjection ( ElementProjection $projectionFunction = null ) : static
$projectionFunction Pinq\Queries\Functions\ElementProjection
return static
    public function updateProjection(Functions\ElementProjection $projectionFunction = null)
    {
        if ($this->projectionFunction === $projectionFunction) {
            return $this;
        }
        return $this->withProjectionFunction($projectionFunction);
    }