class Tokens

Token utilities.

Methods

static bool
match(Token $token, array $pattern)

Checks if a pattern is a match for the specified token.

static 
replaceTokens($list, array $find, array $replace)

No description

Details

at line 30
static bool match(Token $token, array $pattern)

Checks if a pattern is a match for the specified token.

Parameters

Token $token the token to be matched
array $pattern the pattern to be matches

Return Value

bool

at line 69
static replaceTokens($list, array $find, array $replace)

Parameters

$list
array $find
array $replace