Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class Validate |
||
18 | { |
||
19 | /** |
||
20 | * @return NumericRule |
||
21 | */ |
||
22 | public static function numeric(): NumericRule |
||
23 | { |
||
24 | return new NumericRule(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return IntegerRuleInterface |
||
29 | */ |
||
30 | public static function integer(): IntegerRuleInterface |
||
31 | { |
||
32 | return new IntegerRule(); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return FloatRuleInterface |
||
37 | */ |
||
38 | public static function float(): FloatRuleInterface |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return ContainerRuleInterface |
||
45 | */ |
||
46 | public static function container(): ContainerRuleInterface |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param array<BaseRuleInterface> $rules |
||
53 | * @return OrRule |
||
54 | */ |
||
55 | public static function or(array $rules): OrRule |
||
60 |