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