W3cubDocs

/Symfony 2.8

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)

Parameters

int $type
string $value
int $position

public int getType()

Return Value

int

public string getValue()

Return Value

string

public int getPosition()

Return Value

int

public bool isFileEnd()

Return Value

bool

public bool isDelimiter(array $values = array())

Parameters

array $values

Return Value

bool

public bool isWhitespace()

Return Value

bool

public bool isIdentifier()

Return Value

bool

public bool isHash()

Return Value

bool

public bool isNumber()

Return Value

bool

public bool isString()

Return Value

bool

public string __toString()

Return Value

string

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/CssSelector/Parser/Token.html