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

TokenStream::getNextIdentifierpublicWC 1.0

Returns next identifier token.

Method of the class: TokenStream{}

No Hooks.

Returns

null. Nothing (null).

Usage

$TokenStream = new TokenStream();
$TokenStream->getNextIdentifier(): string;

TokenStream::getNextIdentifier() code WC 10.4.3

public function getNextIdentifier(): string
{
    $next = $this->getNext();

    if (!$next->isIdentifier()) {
        throw SyntaxErrorException::unexpectedToken('identifier', $next);
    }

    return $next->getValue();
}