PHP 클래스 Eloquent\Phony\Matcher\WildcardMatcher

상속: implements Eloquent\Phony\Matcher\Matchable
파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Eloquent\Phony\Matcher\Matcher $matcher, integer $minimumArguments, integer | null $maximumArguments ) Construct a new wildcard matcher.
__toString ( ) : string Describe this matcher.
describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string Describe this matcher.
instance ( ) : WildcardMatcher Get the static instance of this matcher.
matcher ( ) : Eloquent\Phony\Matcher\Matcher Get the matcher to use for each argument.
maximumArguments ( ) : integer | null Get the maximum number of arguments to match.
minimumArguments ( ) : integer Get the minimum number of arguments to match.

메소드 상세

__construct() 공개 메소드

Construct a new wildcard matcher.
public __construct ( Eloquent\Phony\Matcher\Matcher $matcher, integer $minimumArguments, integer | null $maximumArguments )
$matcher Eloquent\Phony\Matcher\Matcher The matcher to use for each argument.
$minimumArguments integer The minimum number of arguments.
$maximumArguments integer | null The maximum number of arguments.

__toString() 공개 메소드

Describe this matcher.
public __toString ( ) : string
리턴 string The description.

describe() 공개 메소드

Describe this matcher.
public describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string
$exporter Eloquent\Phony\Exporter\Exporter The exporter to use.
리턴 string The description.

instance() 공개 정적인 메소드

Get the static instance of this matcher.
public static instance ( ) : WildcardMatcher
리턴 WildcardMatcher The static matcher.

matcher() 공개 메소드

Get the matcher to use for each argument.
public matcher ( ) : Eloquent\Phony\Matcher\Matcher
리턴 Eloquent\Phony\Matcher\Matcher The matcher.

maximumArguments() 공개 메소드

Get the maximum number of arguments to match.
public maximumArguments ( ) : integer | null
리턴 integer | null The maximum number of arguments.

minimumArguments() 공개 메소드

Get the minimum number of arguments to match.
public minimumArguments ( ) : integer
리턴 integer The minimum number of arguments.