protected function getTypeName()
    {
        $result = $this->type;
        foreach (get_defined_constants() as $name => $value) {
            if (substr($name, 0, 2) === 'T_' && $value === $this->type) {
                $result = $name;
                break;
            }
        }

        return $result;
    }
protected function getTypeName()
    {
        $result = $this->type;
        foreach (get_defined_constants() as $name => $value) {
            if (substr($name, 0, 2) === 'T_' && $value === $this->type) {
                $result = $name;
                break;
            }
        }

        return $result;
    }
protected function getTypeName ( ) { $ result = $ this -> type ; foreach ( get_defined_constants ( ) as $ name => $ value ) { if ( substr ( $ name , 0 , 2 ) === 'T_' && $ value === $ this -> type ) { $ result = $ name ; break ; } } return $ result ; }
Returns name of the token type.
Shouldn't be used outside debugging purposes.

@return string
Returns name of the token type . Shouldn t be used outside debugging purposes .