Copied!

CSS selector token.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.

CloneableInstantiable
Constants
public Symfony\Component\CssSelector\Parser\Token::TYPE_DELIMITER = 'delimiter'
public Symfony\Component\CssSelector\Parser\Token::TYPE_FILE_END = 'eof'
public Symfony\Component\CssSelector\Parser\Token::TYPE_HASH = 'hash'
public Symfony\Component\CssSelector\Parser\Token::TYPE_IDENTIFIER = 'identifier'
public Symfony\Component\CssSelector\Parser\Token::TYPE_NUMBER = 'number'
public Symfony\Component\CssSelector\Parser\Token::TYPE_STRING = 'string'
public Symfony\Component\CssSelector\Parser\Token::TYPE_WHITESPACE = 'whitespace'
Methods
public __construct(?string $type, ?string $value, ?int $position)
public __toString() : string
public getPosition() : ?int
public getType() : ?int
public getValue() : ?string
public isDelimiter(array $values = []) : bool
public isFileEnd() : bool
public isHash() : bool
public isIdentifier() : bool
public isNumber() : bool
public isString() : bool
public isWhitespace() : bool
Properties
private ?int $position
private ?string $type
private ?string $value
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration