Eloquent\Phony\Matcher\MatcherFactory::isMatcher PHP Method

isMatcher() public method

Returns true if the supplied value is a matcher.
public isMatcher ( mixed $value ) : boolean
$value mixed The value to test.
return boolean True if the value is a matcher.
    public function isMatcher($value)
    {
        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;
    }