public function visitOrderBy(Segments\OrderBy $segment) { foreach ($segment->getOrderings() as $ordering) { $this->parameters->addId($ordering->getIsAscendingId(), ParameterHasher::valueType()); } return parent::visitOrderBy($segment); }
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)); }
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)); }