Pinq\Queries\Segments\Ordering::update PHP Method

update() public method

public update ( ElementProjection $projectionFunction ) : Ordering
$projectionFunction Pinq\Queries\Functions\ElementProjection
return Ordering
    public function update(Functions\ElementProjection $projectionFunction)
    {
        if ($this->projectionFunction === $projectionFunction) {
            return $this;
        }
        return new self($projectionFunction, $this->isAscendingId);
    }