Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class PredefinedIntegerGenerator implements IntegerGenerator |
||
9 | { |
||
10 | /** @var int */ |
||
11 | private $number; |
||
12 | |||
13 | public function __construct(int $number) |
||
14 | { |
||
15 | $this->number = $number; |
||
16 | } |
||
17 | |||
18 | public static function generating(int $number): self |
||
19 | { |
||
20 | return new self($number); |
||
21 | } |
||
22 | |||
23 | public function below(int $number): int |
||
32 | )); |
||
33 | } |
||
34 | } |
||
35 |