Menu

## ArgumentsWildcard
in package

ArgumentsWildcard.php : 19

Arguments wildcarding.

##### Tags

author

  Konstantin Kudryashov ever.zet@gmail.com

### 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

ArgumentsWildcard.php : 25
`private mixed $string`

#### $tokens

ArgumentsWildcard.php : 24
`private array<string|int, TokenInterface> $tokens = array()`

### Methods

#### __construct()

ArgumentsWildcard.php : 32

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

ArgumentsWildcard.php : 83

Returns string representation for wildcard.

`public __toString() : string`

##### Return values

string —

#### getTokens()

ArgumentsWildcard.php : 97
`public getTokens() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

#### scoreArguments()

ArgumentsWildcard.php : 50

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)

## Search results