We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | final class LessThan extends AbstractRule |
||
24 | { |
||
25 | use ComparisonHelper; |
||
26 | |||
27 | /** |
||
28 | * @var mixed |
||
29 | */ |
||
30 | private $compareTo; |
||
31 | |||
32 | /** |
||
33 | * Initializes the rule by setting the value to be compared to the input. |
||
34 | * |
||
35 | * @param mixed $compareTo |
||
36 | */ |
||
37 | 1 | public function __construct($compareTo) |
|
38 | { |
||
39 | 1 | $this->compareTo = $compareTo; |
|
40 | 1 | } |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 9 | public function validate($input): bool |
|
48 | } |
||
49 | } |
||
50 |