Token
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
Details
__construct(string|null $type, string|null $value, int|null $position)
Parameters
string|null |
$type |
|
string|null |
$value |
|
int|null |
$position |
|
int|null getType()
Return Value
string|null getValue()
Return Value
int|null getPosition()
Return Value
bool isFileEnd()
Return Value
bool isDelimiter(array $values = array())
Parameters
Return Value
bool isWhitespace()
Return Value
bool isIdentifier()
Return Value
bool isHash()
Return Value
bool isNumber()
Return Value
bool isString()
Return Value
string __toString()
Return Value