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

TokenStream::getNextpublicWC 1.0

Returns next token.

Метод класса: TokenStream{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$TokenStream = new TokenStream();
$TokenStream->getNext(): Token;

Код TokenStream::getNext() WC 10.5.0

public function getNext(): Token
{
    if ($this->peeking) {
        $this->peeking = false;
        $this->used[] = $this->peeked;

        return $this->peeked;
    }

    if (!isset($this->tokens[$this->cursor])) {
        throw new InternalErrorException('Unexpected token stream end.');
    }

    return $this->tokens[$this->cursor++];
}