public function getNext()
    {
        if ($this->currentToken !== null || strlen($this->currentInput) > 0) {
            $this->parseNextToken();

            return $this->currentToken;
        }

        return null;
    }
public function getNext()
    {
        if ($this->currentToken !== null || strlen($this->currentInput) > 0) {
            $this->parseNextToken();

            return $this->currentToken;
        }

        return null;
    }
public function getNext ( ) { if ( $ this -> currentToken !== null || strlen ( $ this -> currentInput ) > 0 ) { $ this -> parseNextToken ( ) ; return $ this -> currentToken ; } return null ; }
Get next token

@return array
@throws Exception
Get next token