PHP Class Eloquent\Phony\Matcher\WildcardMatcher

Inheritance: implements Eloquent\Phony\Matcher\Matchable
Datei anzeigen Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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

describe() public method

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

instance() public static method

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

matcher() public method

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

maximumArguments() public method

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

minimumArguments() public method

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