matchers[] = $matcher; return $this; } public function match(mixed $item): bool { foreach ($this->matchers as $matcher) { if ($matcher->supports($item) && $matcher->match($item)) { return true; } } return false; } }