/home/ivoiecob/email.hirewise-va.com/vendor/afterlogic/mailso/lib/MailSo/Mail/MessageCollection.php
<?php
/**
 * This code is licensed under AGPLv3 license or Afterlogic Software License
 * if commercial version of the product was purchased.
 * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files.
 */

namespace MailSo\Mail;

/**
 * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
 * @license https://afterlogic.com/products/common-licensing Afterlogic Software License
 * @copyright Copyright (c) 2019, Afterlogic Corp.
 *
 * @category MailSo
 * @package Mail
 */
class MessageCollection extends \MailSo\Base\Collection
{
    /**
     * @var string
     */
    public $FolderHash;

    /**
     * @var int
     */
    public $MessageCount;

    /**
     * @var int
     */
    public $MessageUnseenCount;

    /**
     * @var int
     */
    public $MessageResultCount;

    /**
     * @var string
     */
    public $FolderName;

    /**
     * @var int
     */
    public $Offset;

    /**
     * @var int
     */
    public $Limit;

    /**
     * @var string
     */
    public $Search;

    /**
     * @var string
     */
    public $UidNext;

    /**
     * @var array
     */
    public $NewMessages;

    /**
     * @var array
     */
    public $LastCollapsedThreadUids;

    /**
     * @access protected
     */
    protected function __construct()
    {
        parent::__construct();

        $this->clear();
    }

    /**
     * @return \MailSo\Mail\MessageCollection
     */
    public static function NewInstance()
    {
        return new self();
    }

    /**
     * @return \MailSo\Mail\MessageCollection
     */
    public function clear()
    {
        parent::clear();

        $this->FolderHash = '';

        $this->MessageCount = 0;
        $this->MessageUnseenCount = 0;
        $this->MessageResultCount = 0;

        $this->FolderName = '';
        $this->Offset = 0;
        $this->Limit = 0;
        $this->Search = '';
        $this->UidNext = '';
        $this->NewMessages = array();

        $this->LastCollapsedThreadUids = array();

        return $this;
    }
}