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

__construct(int $type, string $value, int $position)

Parameters

int $type
string $value
int $position

int getType()

Return Value

int

string getValue()

Return Value

string

int getPosition()

Return Value

int

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
doc_Symfony
2016-10-28 06:34:38
Comments
Leave a Comment

Please login to continue.