| 1 | <?php |
||
| 16 | class GeneratorStatus |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Machine ID. |
||
| 20 | * |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | public $machine; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Generator timestamp of last ID generation (converted with epoch). |
||
| 27 | * |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | public $lastTime; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Current sequence. |
||
| 34 | * |
||
| 35 | * @var int |
||
| 36 | */ |
||
| 37 | public $sequence; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * True, if server works in 32bit mode. |
||
| 41 | * |
||
| 42 | * @var bool |
||
| 43 | */ |
||
| 44 | public $is32Bit; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Class constructor. |
||
| 48 | * |
||
| 49 | * @param int $machine |
||
| 50 | * @param int $lastTime |
||
| 51 | * @param int $sequence |
||
| 52 | * @param boolean $is32Bit |
||
| 53 | */ |
||
| 54 | 1 | public function __construct($machine, $lastTime, $sequence, $is32Bit) |
|
| 61 | } |
||
| 62 |