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(int $type, string $value, int $position)

No description

int
getType()

No description

string
getValue()

No description

int
getPosition()

No description

bool
isFileEnd()

No description

bool
isDelimiter(array $values = array())

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 line 54
__construct(int $type, string $value, int $position)

Parameters

int $type
string $value
int $position

at line line 64
int getType()

Return Value

int

at line line 72
string getValue()

Return Value

string

at line line 80
int getPosition()

Return Value

int

at line line 88
bool isFileEnd()

Return Value

bool

at line line 98
bool isDelimiter(array $values = array())

Parameters

array $values

Return Value

bool

at line line 114
bool isWhitespace()

Return Value

bool

at line line 122
bool isIdentifier()

Return Value

bool

at line line 130
bool isHash()

Return Value

bool

at line line 138
bool isNumber()

Return Value

bool

at line line 146
bool isString()

Return Value

bool

at line line 154
string __toString()

Return Value

string