src/Matcher/MatcherFactory.php
public function isMatcher($value): bool
    {
        if (is_object($value)) {
            if ($value instanceof Matcher) {
                return true;
            }

            foreach ($this->driverIndex as $className => $driver) {
                if (is_a($value, $className)) {
                    return true;
                }
            }
        }

        return false;
    }
public function isMatcher($value): bool
    {
        if (is_object($value)) {
            if ($value instanceof Matcher) {
                return true;
            }

            foreach ($this->driverIndex as $className => $driver) {
                if (is_a($value, $className)) {
                    return true;
                }
            }
        }

        return false;
    }
public function isMatcher ( $ value ) : bool { if ( is_object ( $ value ) ) { if ( $ value instanceof Matcher ) { return true ; } foreach ( $ this -> driverIndex as $ className => $ driver ) { if ( is_a ( $ value , $ className ) ) { return true ; } } } return false ; }
Returns true if the supplied value is a matcher.

@param mixed $value The value to test.

@return bool True if the value is a matcher.
Returns true if the supplied value is a matcher .