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

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

        return $next->getValue();
    }
public function getNextIdentifier()
    {
        $next = $this->getNext();

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

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

@return string The identifier token value

@throws SyntaxErrorException If next token is not an identifier
Returns nex identifier token .