Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends Request
 protected function updateOptionalProjection(Requests\ProjectionRequestBase $projectionRequest)
 {
     if ($projectionRequest->hasProjectionFunction()) {
         return $this->expressionProcessor->processFunction($projectionRequest->getProjectionFunction());
     }
     return $projectionRequest;
 }
Beispiel #2
0
 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());
     }
 }
Beispiel #3
0
 public function getParameters()
 {
     return array_merge([$this->delimiterId], parent::getParameters());
 }
Beispiel #4
0
 private function getOptionalFunction(Requests\ProjectionRequestBase $request)
 {
     return $request->hasProjectionFunction() ? $this->resolvedParameters[$request->getProjectionFunction()->getCallableId()] : null;
 }
Beispiel #5
0
 public final function __construct(Functions\ElementProjection $projectionFunction = null)
 {
     parent::__construct($projectionFunction);
 }