Eloquent\Phony\Matcher\MatcherFactory::wildcard PHP Метод

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

Create a new matcher that matches multiple arguments.
public wildcard ( mixed $value = null, integer $minimumArguments, integer | null $maximumArguments = null ) : WildcardMatcher
$value mixed The value to check for each argument.
$minimumArguments integer The minimum number of arguments.
$maximumArguments integer | null The maximum number of arguments.
Результат WildcardMatcher 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);
    }