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

        if ($next->isIdentifier()) {
            return $next->getValue();
        }

        if ($next->isDelimiter(['*'])) {
            return;
        }

        throw SyntaxErrorException::unexpectedToken('identifier or "*"', $next);
    }
public function getNextIdentifierOrStar()
    {
        $next = $this->getNext();

        if ($next->isIdentifier()) {
            return $next->getValue();
        }

        if ($next->isDelimiter(['*'])) {
            return;
        }

        throw SyntaxErrorException::unexpectedToken('identifier or "*"', $next);
    }
public function getNextIdentifierOrStar ( ) { $ next = $ this -> getNext ( ) ; if ( $ next -> isIdentifier ( ) ) { return $ next -> getValue ( ) ; } if ( $ next -> isDelimiter ( [ '*' ] ) ) { return ; } throw SyntaxErrorException :: unexpectedToken ( 'identifier or "*"' , $ next ) ; }
Returns nex identifier or star delimiter token.

@return string|null The identifier token value or null if star found

@throws SyntaxErrorException If next token is not an identifier or a star delimiter
Returns nex identifier or star delimiter token .