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