src/Jit/TokenStream.php
public function getName($index = null)
    {
        $type = $this->getType($index);
        return is_int($type) ? token_name($type) : null;
    }
public function getName($index = null)
    {
        $type = $this->getType($index);
        return is_int($type) ? token_name($type) : null;
    }
public function getName ( $ index = null ) { $ type = $ this -> getType ( $ index ) ; return is_int ( $ type ) ? token_name ( $ type ) : null ; }
Returns the token type name.

@param  integer     $index Token position, if none given, consider the current iteration position.
@return string|null
Returns the token type name .