Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\CssSelector\Parser; Chris@0: Chris@0: use Symfony\Component\CssSelector\Node\SelectorNode; Chris@0: Chris@0: /** Chris@0: * CSS selector parser interface. Chris@0: * Chris@0: * This component is a port of the Python cssselect library, Chris@0: * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. Chris@0: * Chris@0: * @author Jean-François Simon Chris@0: * Chris@0: * @internal Chris@0: */ Chris@0: interface ParserInterface Chris@0: { Chris@0: /** Chris@0: * Parses given selector source into an array of tokens. Chris@0: * Chris@0: * @param string $source Chris@0: * Chris@0: * @return SelectorNode[] Chris@0: */ Chris@0: public function parse($source); Chris@0: }