xPaw Minecraft服务器查询

Can someone help me get just the Hostname from this Minecraft Query by xPaw.

Here is the repo: https://github.com/xPaw/PHP-Minecraft-Query

I believe i add something after GetInfo( ).

<?php
    require('MinecraftQuery.class.php');

    $Query = new MinecraftQuery( );

    try
    {
        $Query->Connect( 'localhost', 25565 );

       print_r( $Query->GetInfo( ));
    }
    catch( MinecraftQueryException $e )
    {
        echo $e->getMessage( );
    }
?>

Looking at https://github.com/xPaw/PHP-Minecraft-Query/blob/master/MinecraftQuery.class.php#L105, you should be able to do:-

$info = $Query->GetInfo();
echo $info['hostname'];