1 | <?php |
||
9 | class Sequence |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | private $value; |
||
15 | |||
16 | /** |
||
17 | * Construtor |
||
18 | * |
||
19 | * @param string $value |
||
20 | */ |
||
21 | 2 | public function __construct(int $value = 1) |
|
25 | |||
26 | /** |
||
27 | * Return the value from sequence |
||
28 | * |
||
29 | * @return int |
||
30 | */ |
||
31 | 2 | public function getValue(): int |
|
35 | |||
36 | /** |
||
37 | * Set the value from sequence |
||
38 | * |
||
39 | * @param int $value |
||
40 | */ |
||
41 | 1 | public function setValue(int $value) |
|
45 | } |
||
46 |