<?php
namespace ModulesAbstract\PluginReports\Report\Model\Filters; class Filters { protected $filters= []; public function setFilter(\ModulesAbstract\PluginReports\Report\Model\Filters\FilterAbstract $filter) { $this->filters[$filter->getId()] = $filter; return $this; } public function getFilters() { return $this->filters; } public function getFilterById($id) { return $this->filters[$id]; } public function removeFilter($id) { unset($this->filters[$id]); return $this; } } 