public function getThread(): array
    {
        \set_error_handler(static function () {});

        /** @var array|false $tree */
        $tree = \imap_thread($this->resource->getStream());

        \restore_error_handler();

        return false !== $tree ? $tree : [];
    }
public function getThread(): array
    {
        \set_error_handler(static function () {});

        /** @var array|false $tree */
        $tree = \imap_thread($this->resource->getStream());

        \restore_error_handler();

        return false !== $tree ? $tree : [];
    }
public function getThread ( ) : array { \ set_error_handler ( static function ( ) { } ) ; /** @var array|false $tree */ $ tree = \ imap_thread ( $ this -> resource -> getStream ( ) ) ; \ restore_error_handler ( ) ; return false !== $ tree ? $ tree : [ ] ; }
Returns a tree of threaded message for the current Mailbox.

@return array
Returns a tree of threaded message for the current Mailbox .