filters = $filters; } public function has(string $name): bool { return isset($this->filters[$name]); } public function get(string $name): ?IFilter { return $this->filters[$name] ?? null; } public function getIterator(): Generator { foreach ($this->filters as $k => $v) { yield $k => $v; } } }