public function current()
    {
        if (!isset($this->tokenList[$this->ptr])) {
            throw new \UnexpectedValueException("Unexpected input at offset {$this->ptr}, unexpected end of stream");
        }
        return $this->tokenList[$this->ptr];
    }
public function current()
    {
        if (!isset($this->tokenList[$this->ptr])) {
            throw new \UnexpectedValueException("Unexpected input at offset {$this->ptr}, unexpected end of stream");
        }
        return $this->tokenList[$this->ptr];
    }
public function current ( ) { if ( ! isset ( $ this -> tokenList [ $ this -> ptr ] ) ) { throw new \ UnexpectedValueException ( "Unexpected input at offset {$this->ptr}, unexpected end of stream" ) ; } return $ this -> tokenList [ $ this -> ptr ] ; }
Returns the current token

@return Token
@throws \UnexpectedValueException
Returns the current token