Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
4 | class GreaterThan implements ConditionInterface |
||
5 | { |
||
6 | /** |
||
7 | * @var int |
||
8 | */ |
||
9 | protected $greaterThan; |
||
10 | |||
11 | /** |
||
12 | * @var bool |
||
13 | */ |
||
14 | protected $inclusive = false; |
||
15 | |||
16 | /** |
||
17 | * GreaterThan constructor. |
||
18 | * |
||
19 | * @param int $greaterThan |
||
20 | * @param bool $inclusive |
||
21 | */ |
||
22 | 7 | public function __construct(int $greaterThan, bool $inclusive = false) |
|
26 | 7 | } |
|
27 | |||
28 | /** |
||
29 | * @param int $value |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | 6 | public function shouldRun($value) |
|
46 |