Ejemplo n.º 1
0
 /**
  * @return SortingCondition
  */
 private function __getSortingCondition()
 {
     return QueryTraitsUtil::filterConditionByClass($this->getConditionByName('__sort'), 'QueryObject\\Condition\\SortingCondition')->getOrCall(function () {
         $condition = new SortingCondition();
         $this->addCondition($condition, '__sort');
         return $condition;
     });
 }
Ejemplo n.º 2
0
 public function getLimit()
 {
     return QueryTraitsUtil::filterConditionByClass($this->getConditionByName('__limit'), 'QueryObject\\Condition\\LimitCondition')->map(function (LimitCondition $condition) {
         return $condition->getLimit();
     })->getOrElse(0);
 }
Ejemplo n.º 3
0
 public function getOffset()
 {
     return QueryTraitsUtil::filterConditionByClass($this->getConditionByName('__offset'), 'QueryObject\\Condition\\OffsetCondition')->map(function (OffsetCondition $condition) {
         return $condition->getOffset();
     })->getOrElse(null);
 }