public function registerMatcher($matcher)
    {
        if (! in_array($matcher, $this->matchers) && is_a($matcher, MatcherInterface::class, true)) {
            $this->matchers[] = $matcher;
        }

        return $this;
    }
public function registerMatcher($matcher)
    {
        if (! in_array($matcher, $this->matchers) && is_a($matcher, MatcherInterface::class, true)) {
            $this->matchers[] = $matcher;
        }

        return $this;
    }
public function registerMatcher ( $ matcher ) { if ( ! in_array ( $ matcher , $ this -> matchers ) && is_a ( $ matcher , MatcherInterface :: class , true ) ) { $ this -> matchers [ ] = $ matcher ; } return $ this ; }
Registers a new matcher.

@param      $matcher

@return $this
Registers a new matcher .