public wildcard ( mixed $value = null, integer $minimumArguments, integer | null $maximumArguments = null ) : |
||
$value | mixed | The value to check for each argument. |
$minimumArguments | integer | The minimum number of arguments. |
$maximumArguments | integer | null | The maximum number of arguments. |
Результат | The newly created wildcard matcher. |
public function wildcard($value = null, $minimumArguments = 0, $maximumArguments = null)
{
if (0 === func_num_args()) {
return $this->wildcardAnyMatcher;
}
if (null === $value) {
$value = $this->anyMatcher;
} else {
$value = $this->adapt($value);
}
return new WildcardMatcher($value, $minimumArguments, $maximumArguments);
}