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
| __construct(string|null $type, string|null $value, int|null $position) | ||
| int|null | getType() | |
| string|null | getValue() | |
| int|null | getPosition() | |
| bool | isFileEnd() | |
| bool | isDelimiter(array $values = array()) | |
| bool | isWhitespace() | |
| bool | isIdentifier() | |
| bool | isHash() | |
| bool | isNumber() | |
| bool | isString() | |
| string | __toString() |
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
| int|null |
string|null getValue()
Return Value
| string|null |
int|null getPosition()
Return Value
| int|null |
bool isFileEnd()
Return Value
| bool |
bool isDelimiter(array $values = array())
Parameters
| array | $values |
Return Value
| bool |
bool isWhitespace()
Return Value
| bool |
bool isIdentifier()
Return Value
| bool |
bool isHash()
Return Value
| bool |
bool isNumber()
Return Value
| bool |
bool isString()
Return Value
| bool |
string __toString()
Return Value
| string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/CssSelector/Parser/Token.html