Nenhuma descrição

ParserInterface.php 809B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\CssSelector\Parser;
  11. use Symfony\Component\CssSelector\Node\SelectorNode;
  12. /**
  13. * CSS selector parser interface.
  14. *
  15. * This component is a port of the Python cssselect library,
  16. * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
  17. *
  18. * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
  19. *
  20. * @internal
  21. */
  22. interface ParserInterface
  23. {
  24. /**
  25. * Parses given selector source into an array of tokens.
  26. *
  27. * @return SelectorNode[]
  28. */
  29. public function parse(string $source): array;
  30. }