| @@ -1,33 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -/* | |
| 4 | - * This file is part of the PHP IMAP2 package. | |
| 5 | - * | |
| 6 | - * (c) Francesco Bianco <[email protected]> | |
| 7 | - * | |
| 8 | - * For the full copyright and license information, please view the LICENSE | |
| 9 | - * file that was distributed with this source code. | |
| 10 | - */ | |
| 11 | - | |
| 12 | -namespace AcyMailing\Libraries\Imap2; | |
| 13 | - | |
| 14 | -class Timeout | |
| 15 | -{ | |
| 16 | - protected static $timeout; | |
| 17 | - | |
| 18 | - public static function set($timeoutType, $timeout = -1) | |
| 19 | - { | |
| 20 | - if ($timeout == -1) { | |
| 21 | - return self::get($timeoutType); | |
| 22 | - } | |
| 23 | - | |
| 24 | - self::$timeout[$timeoutType] = $timeout; | |
| 25 | - | |
| 26 | - return true; | |
| 27 | - } | |
| 28 | - | |
| 29 | - public static function get($timeoutType) | |
| 30 | - { | |
| 31 | - return self::$timeout[$timeoutType]; | |
| 32 | - } | |
| 33 | -} | |