wp-user-avatar
/
third-party
/
vendor
/
symfony
/
css-selector
/
XPath
/
Extension
/
ExtensionInterface.php
AbstractExtension.php
2 months ago
AttributeMatchingExtension.php
2 months ago
CombinationExtension.php
2 months ago
ExtensionInterface.php
2 months ago
FunctionExtension.php
2 months ago
HtmlExtension.php
2 months ago
NodeExtension.php
2 months ago
PseudoClassExtension.php
2 months ago
ExtensionInterface.php
62 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace ProfilePressVendor\Symfony\Component\CssSelector\XPath\Extension; |
| 12 | |
| 13 | /** |
| 14 | * XPath expression translator extension interface. |
| 15 | * |
| 16 | * This component is a port of the Python cssselect library, |
| 17 | * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. |
| 18 | * |
| 19 | * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> |
| 20 | * |
| 21 | * @internal |
| 22 | */ |
| 23 | interface ExtensionInterface |
| 24 | { |
| 25 | /** |
| 26 | * Returns node translators. |
| 27 | * |
| 28 | * These callables will receive the node as first argument and the translator as second argument. |
| 29 | * |
| 30 | * @return callable[] |
| 31 | */ |
| 32 | public function getNodeTranslators(): array; |
| 33 | /** |
| 34 | * Returns combination translators. |
| 35 | * |
| 36 | * @return callable[] |
| 37 | */ |
| 38 | public function getCombinationTranslators(): array; |
| 39 | /** |
| 40 | * Returns function translators. |
| 41 | * |
| 42 | * @return callable[] |
| 43 | */ |
| 44 | public function getFunctionTranslators(): array; |
| 45 | /** |
| 46 | * Returns pseudo-class translators. |
| 47 | * |
| 48 | * @return callable[] |
| 49 | */ |
| 50 | public function getPseudoClassTranslators(): array; |
| 51 | /** |
| 52 | * Returns attribute operation translators. |
| 53 | * |
| 54 | * @return callable[] |
| 55 | */ |
| 56 | public function getAttributeMatchingTranslators(): array; |
| 57 | /** |
| 58 | * Returns extension name. |
| 59 | */ |
| 60 | public function getName(): string; |
| 61 | } |
| 62 |