PHP Класс Eloquent\Phony\Integration\ProphecyMatcherDriver

Наследование: implements Eloquent\Phony\Matcher\MatcherDriver
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( WildcardMatcher $wildcard ) Construct a new Prophecy matcher driver.
instance ( ) : Eloquent\Phony\Matcher\MatcherDriver Get the static instance of this driver.
isAvailable ( ) : boolean Returns true if this matcher driver's classes or interfaces exist.
matcherClassNames ( ) : array Get the supported matcher class names.
wrapMatcher ( object $matcher ) : Eloquent\Phony\Matcher\Matchable Wrap the supplied third party matcher.

Описание методов

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

Construct a new Prophecy matcher driver.
public __construct ( WildcardMatcher $wildcard )
$wildcard Eloquent\Phony\Matcher\WildcardMatcher The wildcard matcher to use.

instance() публичный статический Метод

Get the static instance of this driver.
public static instance ( ) : Eloquent\Phony\Matcher\MatcherDriver
Результат Eloquent\Phony\Matcher\MatcherDriver The static driver.

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

Returns true if this matcher driver's classes or interfaces exist.
public isAvailable ( ) : boolean
Результат boolean True if available.

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

Get the supported matcher class names.
public matcherClassNames ( ) : array
Результат array

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.