1 | <?php namespace Limoncello\Validation\Validator; |
||
26 | trait Compares |
||
27 | { |
||
28 | /** |
||
29 | * @param mixed $value |
||
30 | * |
||
31 | * @return RuleInterface |
||
|
|||
32 | */ |
||
33 | 5 | protected static function equals($value) |
|
39 | |||
40 | /** |
||
41 | * @param mixed $value |
||
42 | * |
||
43 | * @return RuleInterface |
||
44 | */ |
||
45 | 1 | protected static function notEquals($value) |
|
51 | |||
52 | /** |
||
53 | * @param mixed $value |
||
54 | * |
||
55 | * @return RuleInterface |
||
56 | */ |
||
57 | 1 | protected static function lessThan($value) |
|
63 | |||
64 | /** |
||
65 | * @param mixed $value |
||
66 | * |
||
67 | * @return RuleInterface |
||
68 | */ |
||
69 | 1 | protected static function lessOrEquals($value) |
|
75 | |||
76 | /** |
||
77 | * @param mixed $value |
||
78 | * |
||
79 | * @return RuleInterface |
||
80 | */ |
||
81 | 1 | protected static function moreThan($value) |
|
87 | |||
88 | /** |
||
89 | * @param mixed $value |
||
90 | * |
||
91 | * @return RuleInterface |
||
92 | */ |
||
93 | protected static function moreOrEquals($value) |
||
99 | } |
||
100 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.