public function addMatcher(MatcherInterface $matcher) { foreach ($matcher->getMatchTypes() as $matchType) { if (isset($this->matchers[$matchType])) { return false; } } foreach ($matcher->getMatchTypes() as $matchType) { $this->matchers[$matchType] = $matcher; } return true; }