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()); } }
private function getOptionalFunction(Requests\ProjectionRequestBase $request) { return $request->hasProjectionFunction() ? $this->resolvedParameters[$request->getProjectionFunction()->getCallableId()] : null; }