Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $value = parent::toArray();
     if ($this->getNestedFilter() !== null) {
         $value['nested_filter'][$this->getNestedFilter()->getType()] = $this->getNestedFilter()->toArray();
     }
     return $value;
 }
Exemple #2
0
 /**
  * @param AbstractSort $sort
  */
 public function addSort(AbstractSort $sort)
 {
     $this->sorts[$sort->getType()] = $sort;
 }