# acymailing/11.1.0/back/Libraries/Imap2/Timeout.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 11.1.0. 34 lines.

- Page: https://pluginprobe.com/plugins/acymailing/11.1.0/code/back/Libraries/Imap2/Timeout.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.1.0/raw/back/Libraries/Imap2/Timeout.php
- Modified: 2025-04-10T12:24:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/11.1.0/code/back/Libraries/Imap2/Timeout.php#L10-L20`.

```php
<?php

/*
 * This file is part of the PHP IMAP2 package.
 *
 * (c) Francesco Bianco <bianco@javanile.org>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AcyMailing\Libraries\Imap2;

class Timeout
{
    protected static $timeout;

    public static function set($timeoutType, $timeout = -1)
    {
        if ($timeout == -1) {
            return self::get($timeoutType);
        }

        self::$timeout[$timeoutType] = $timeout;

        return true;
    }

    public static function get($timeoutType)
    {
        return self::$timeout[$timeoutType];
    }
}

```
