Documentation

InArrayToken
in package
implements TokenInterface

Check if values is in array

Tags
author

Vinícius Alonso vba321@hotmail.com

Interfaces, Classes, Traits and Enums

TokenInterface
Argument token interface.

Table of Contents

$strict  : mixed
$token  : mixed
__construct()  : mixed
__toString()  : string
Returns string representation for token.
isLast()  : bool
Returns false.
scoreArgument()  : bool|int
Return scores 8 score if argument is in array.

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $arguments[, bool $strict = true ]) : mixed
Parameters
$arguments : array<string|int, mixed>

tokens

$strict : bool = true
Return values
mixed

__toString()

Returns string representation for token.

public __toString() : string
Return values
string

isLast()

Returns false.

public isLast() : bool
Return values
bool

scoreArgument()

Return scores 8 score if argument is in array.

public scoreArgument( $argument) : bool|int
Parameters
$argument :
Return values
bool|int

Search results