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 |
||
24 | final class Max extends AbstractRule |
||
25 | { |
||
26 | use ComparisonHelper; |
||
27 | |||
28 | /** |
||
29 | * @var mixed |
||
30 | */ |
||
31 | private $compareTo; |
||
32 | |||
33 | /** |
||
34 | * Initializes the rule by setting the value to be compared to the input. |
||
35 | * |
||
36 | * @param mixed $maxValue |
||
37 | */ |
||
38 | 9 | public function __construct($maxValue) |
|
39 | { |
||
40 | 9 | $this->compareTo = $maxValue; |
|
41 | 9 | } |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 16 | public function validate($input): bool |
|
49 | } |
||
50 | } |
||
51 |