Eloquent\Phony\Integration\ProphecyMatcherDriver::wrapMatcher PHP Метод

wrapMatcher() публичный Метод

Wrap the supplied third party matcher.
public wrapMatcher ( object $matcher ) : Eloquent\Phony\Matcher\Matchable
$matcher object The matcher to wrap.
Результат Eloquent\Phony\Matcher\Matchable The wrapped matcher.
    public function wrapMatcher($matcher)
    {
        if (is_a($matcher, 'Prophecy\\Argument\\Token\\AnyValuesToken')) {
            return $this->wildcard;
        }
        return new ProphecyMatcher($matcher);
    }