ArgumentsWildcard
in package
Arguments wildcarding.
Tags
Table of Contents
- $string : mixed
- $tokens : array<string|int, TokenInterface>
- __construct() : mixed
- Initializes wildcard.
- __toString() : string
- Returns string representation for wildcard.
- getTokens() : array<string|int, mixed>
- scoreArguments() : false|int
- Calculates wildcard match score for provided arguments.
Properties
$string
private
mixed
$string
$tokens
private
array<string|int, TokenInterface>
$tokens
= array()
Methods
__construct()
Initializes wildcard.
public
__construct(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
-
Array of argument tokens or values
Return values
mixed —__toString()
Returns string representation for wildcard.
public
__toString() : string
Return values
string —getTokens()
public
getTokens() : array<string|int, mixed>
Return values
array<string|int, mixed> —scoreArguments()
Calculates wildcard match score for provided arguments.
public
scoreArguments(array<string|int, mixed> $arguments) : false|int
Parameters
- $arguments : array<string|int, mixed>
Return values
false|int —False OR integer score (higher - better)