Pinq\Queries\Segments\ProjectionSegment::update PHP Метод

update() публичный Метод

public update ( ElementProjection $projectionFunction ) : static
$projectionFunction Pinq\Queries\Functions\ElementProjection
Результат static
    public function update(Functions\ElementProjection $projectionFunction)
    {
        if ($this->projectionFunction === $projectionFunction) {
            return $this;
        }
        return new static($projectionFunction);
    }

Usage Example

Пример #1
0
 protected function visitProjectionSegment(Segments\ProjectionSegment $segment)
 {
     return $segment->update($this->expressionProcessor->processFunction($segment->getProjectionFunction()));
 }