Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Parser

ParserInterface{}interfaceWC 1.0

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.

Хуков нет.

Использование

$ParserInterface = new ParserInterface();
// use class methods

Методы

  1. public parse(string $source)

Код ParserInterface{} WC 11.0.1

interface ParserInterface
{
    /**
     * Parses given selector source into an array of tokens.
     *
     * @return SelectorNode[]
     */
    public function parse(string $source): array;
}