class Token

CSS selector token.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Constants

TYPE_FILE_END

TYPE_DELIMITER

TYPE_WHITESPACE

TYPE_IDENTIFIER

TYPE_HASH

TYPE_NUMBER

TYPE_STRING

Methods

__construct(string|null $type, string|null $value, int|null $position)

No description

int|null
getType()

No description

string|null
getValue()

No description

int|null
getPosition()

No description

bool
isFileEnd()

No description

bool
isDelimiter(array $values = [])

No description

bool
isWhitespace()

No description

bool
isIdentifier()

No description

bool
isHash()

No description

bool
isNumber()

No description

bool
isString()

No description

string
__toString()

No description

Details

at line 38
__construct(string|null $type, string|null $value, int|null $position)

Parameters

string|null $type
string|null $value
int|null $position

at line 45
int|null getType()

Return Value

int|null

at line 50
string|null getValue()

Return Value

string|null

at line 55
int|null getPosition()

Return Value

int|null

at line 60
bool isFileEnd()

Return Value

bool

at line 65
bool isDelimiter(array $values = [])

Parameters

array $values

Return Value

bool

at line 78
bool isWhitespace()

Return Value

bool

at line 83
bool isIdentifier()

Return Value

bool

at line 88
bool isHash()

Return Value

bool

at line 93
bool isNumber()

Return Value

bool

at line 98
bool isString()

Return Value

bool

at line 103
string __toString()

Return Value

string