4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\CssSelector\XPath\Extension;
15 * XPath expression translator extension interface.
17 * This component is a port of the Python cssselect library,
18 * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
20 * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
24 interface ExtensionInterface
27 * Returns node translators.
29 * These callables will receive the node as first argument and the translator as second argument.
33 public function getNodeTranslators();
36 * Returns combination translators.
40 public function getCombinationTranslators();
43 * Returns function translators.
47 public function getFunctionTranslators();
50 * Returns pseudo-class translators.
54 public function getPseudoClassTranslators();
57 * Returns attribute operation translators.
61 public function getAttributeMatchingTranslators();
64 * Returns extension name.
68 public function getName();