MailSo echo文件夹内容

Im currently messing around with PHP, Fairly new to it.

Im using the MailSo library to connect to my mail server. The goal is get the contents from the INBOX folder and display them in a table.

At the moment all im trying to do is just echo or print_r() the entire INBOX folder. I had it working yesturday but did not touch the project since then and forgot what i did.

Here is my code

include 'lib/MailSo/MailSo.php';

echo '<pre>';

$oLogger = \MailSo\Log\Logger::SingletonInstance()
->Add(\MailSo\Log\Drivers\Inline::NewInstance("
", true));
$oData = null;
try {
    $oMailClient = \MailSo\Mail\MailClient::NewInstance()->SetLogger($oLogger);

    $oData = $oMailClient
        ->Connect('xxxxx.web-hosting.com', 993, \MailSo\Net\Enumerations\ConnectionSecurityType::SSL)
        ->Login('xxxx@xxxx.com', 'mypass')
        ->MessageList('INBOX');

    echo $oData->FolderName('INBOX');

    $oMailClient->LogoutAndDisconnect();
}
catch (Exception $e) {
    var_dump($e);
}

The problem lies somewhere here: echo $oData->FolderName('INBOX');

Its quite confusing since MailSo do not have any documentation for there code.

Thanks!