protected function updateOptionalProjection(Requests\ProjectionRequestBase $projectionRequest) { if ($projectionRequest->hasProjectionFunction()) { return $this->expressionProcessor->processFunction($projectionRequest->getProjectionFunction()); } return $projectionRequest; }
protected function appendOptionalProjection($string, Requests\ProjectionRequestBase $request) { $this->compilation->append($string); if ($request->hasProjectionFunction()) { $this->compilation->append(' according to the function: '); $this->compilation->appendFunction($request->getProjectionFunction()); } }
public function getParameters() { return array_merge([$this->delimiterId], parent::getParameters()); }
private function getOptionalFunction(Requests\ProjectionRequestBase $request) { return $request->hasProjectionFunction() ? $this->resolvedParameters[$request->getProjectionFunction()->getCallableId()] : null; }
public final function __construct(Functions\ElementProjection $projectionFunction = null) { parent::__construct($projectionFunction); }