Parser\ParserInterface (Component\CssSelector)

Symfony\Component\CssSelector\Parser\ParserInterface

interface ParserInterface

CSS selector parser interface.

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

Methods

SelectorNode[] parse(string $source)

Parses given selector source into an array of tokens.

Details

public SelectorNode[] parse(string $source)

Parses given selector