public static function getTypeName($type)
	{
		static $ref = [];
		
		$key = static::class;
		
		if(empty($ref[$key]))
		{
			$ref[$key] = new \ReflectionClass($key);
		}
		
		foreach($ref[$key]->getConstants() as $k => $v)
		{
			if($v === $type && strpos($k, 'T_') === 0)
			{
				return $k;
			}
		}

		return static::UNKNOWN;
	}
public static function getTypeName($type)
	{
		static $ref = [];
		
		$key = static::class;
		
		if(empty($ref[$key]))
		{
			$ref[$key] = new \ReflectionClass($key);
		}
		
		foreach($ref[$key]->getConstants() as $k => $v)
		{
			if($v === $type && strpos($k, 'T_') === 0)
			{
				return $k;
			}
		}

		return static::UNKNOWN;
	}
public static function getTypeName ( $ type ) { static $ ref = [ ] ; $ key = static :: class ; if ( empty ( $ ref [ $ key ] ) ) { $ ref [ $ key ] = new \ ReflectionClass ( $ key ) ; } foreach ( $ ref [ $ key ] -> getConstants ( ) as $ k => $ v ) { if ( $ v === $ type && strpos ( $ k , 'T_' ) === 0 ) { return $ k ; } } return static :: UNKNOWN ; }
Get a human-readable name of the given token type.

@param integer $type
@return string
Get a human - readable name of the given token type .