Completed
Push — master ( cd0397...35e616 )
by Tomasz
03:34
created

GeneratorStatus::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
ccs 6
cts 6
cp 1
cc 1
eloc 5
nc 1
nop 4
crap 1
1
<?php
2
3
/**
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace Gendoria\CruftFlake\Generator;
10
11
/**
12
 * Description of GeneratorStatus.
13
 *
14
 * @author Tomasz Struczyński <[email protected]>
15
 */
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)
55
    {
56 1
        $this->machine = $machine;
57 1
        $this->lastTime = $lastTime;
58 1
        $this->sequence = $sequence;
59 1
        $this->is32Bit = $is32Bit;
60 1
    }
61
}
62