Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\Parser

TokenStream::getPeek │ public │ WC 1.0

Returns peeked token.

Method of the class: TokenStream{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

TokenStream::getPeek() code WC 11.3.0

public function getPeek(): Token
{
    if (!$this->peeking) {
        $this->peeked = $this->getNext();
        $this->peeking = true;
    }

    return $this->peeked;
}