Returns next identifier token.
SyntaxErrorException If next token is not an identifier
public function getNextIdentifier() : string { $next = $this->getNext(); if (!$next->isIdentifier()) { throw SyntaxErrorException::unexpectedToken('identifier', $next); } return $next->getValue(); }