public function TokenStream::getNextIdentifier in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Parser/TokenStream.php \Symfony\Component\CssSelector\Parser\TokenStream::getNextIdentifier()
Returns nex identifier token.
Return value
string The identifier token value
Throws
SyntaxErrorException If next token is not an identifier
File
- vendor/
symfony/ css-selector/ Parser/ TokenStream.php, line 138
Class
- TokenStream
- CSS selector token stream.
Namespace
Symfony\Component\CssSelector\ParserCode
public function getNextIdentifier() {
$next = $this
->getNext();
if (!$next
->isIdentifier()) {
throw SyntaxErrorException::unexpectedToken('identifier', $next);
}
return $next
->getValue();
}