public function getAllTagsForFilter(Filter $filter) { $list = array(); foreach ($filter->getTags() as $tag) { $list = $this->collectTagsByChild($tag, $list); } return $list; }
private function findMatchingByMeta(FilterEntity $filter) { return array_unique(array_map(function ($e) { return $e->getId(); }, (array) $filter->getMeta())); }