Example #1
0
 /**
  * @param IFunction $function
  *
  * @return Functions\ElementProjection
  */
 protected final function buildElementProjection(IFunction $function)
 {
     return $this->buildFunction($function, Functions\ElementProjection::factory());
 }
Example #2
0
 /**
  * @return callable
  */
 protected function functionFactory()
 {
     return Functions\ElementProjection::factory();
 }
Example #3
0
 protected function buildOptionalProjection(IFunction $function = null)
 {
     if ($function === null) {
         return null;
     }
     return $this->buildFunction($function, Queries\Functions\ElementProjection::factory());
 }
Example #4
0
 public function interpretRemoveWhere($operationId, IFunction $function)
 {
     $this->operation = new Operations\RemoveWhere($this->buildFunction($function, Functions\ElementProjection::factory()));
 }
Example #5
0
 public function interpretEqualityJoinFilter(IFunction $outerProjection, IFunction $innerProjection)
 {
     $this->joinFilter = new Join\Filter\Equality($this->buildFunction($outerProjection, Functions\ElementProjection::factory()), $this->buildFunction($innerProjection, Functions\ElementProjection::factory()));
 }