merchant = $merchant; return $this; } public function setSection(SectionInterface $section) { $this->section = $section; return $this; } public function get($params = [], $query = null) { if(is_null($query)) { $query = $this->query->create(); } if($this->merchant) { $query->filterByMerchant($this->merchant); } if($this->section) { $query->filterBySection($this->section); } return parent::get($params, $query); } }