update() public method

public update ( array $orderings ) : OrderBy
$orderings array
return OrderBy
 public function visitOrderBy(Segments\OrderBy $segment)
 {
     $staticOrderings = [];
     foreach ($segment->getOrderings() as $key => $ordering) {
         $staticOrderings[$key] = new StaticOrdering($ordering->getProjectionFunction(), $this->parameters->getResolvedParameters()[$ordering->getIsAscendingId()]);
     }
     return parent::visitOrderBy($segment->update($staticOrderings));
 }
Esempio n. 2
0
 public function visitOrderBy(Segments\OrderBy $segment)
 {
     $orderings = [];
     foreach ($segment->getOrderings() as $key => $ordering) {
         $orderings[$key] = $ordering->update($this->expressionProcessor->processFunction($ordering->getProjectionFunction()));
     }
     return parent::visitOrderBy($segment->update($orderings));
 }