public function update(Functions\ElementProjection $projectionFunction) { if ($this->projectionFunction === $projectionFunction) { return $this; } return new static($projectionFunction); }
protected function visitProjectionSegment(Segments\ProjectionSegment $segment) { return $segment->update($this->expressionProcessor->processFunction($segment->getProjectionFunction())); }