abstract class Token implements Stringable (View source)

Methods

__construct(string $value)

Constructor.

bool
is(string $value)

Determine if the token is the given value.

bool
isNot(string $value)

Determine if the token is not the given value.

string
__toString()

Get the token's value.

Details

__construct(string $value)

Constructor.

Parameters

string $value

bool is(string $value)

Determine if the token is the given value.

Parameters

string $value

Return Value

bool

bool isNot(string $value)

Determine if the token is not the given value.

Parameters

string $value

Return Value

bool

string __toString()

Get the token's value.

Return Value

string