1 | <?php namespace Sample\Validation; |
||
25 | class CustomRules extends Rules |
||
26 | { |
||
27 | /** |
||
28 | * @param int $maxLength |
||
29 | * |
||
30 | * @return RuleInterface |
||
31 | */ |
||
32 | public static function isRequiredString(int $maxLength): RuleInterface |
||
36 | |||
37 | /** |
||
38 | * @param int $maxLength |
||
39 | * |
||
40 | * @return RuleInterface |
||
41 | */ |
||
42 | public static function isNullOrNonEmptyString(int $maxLength): RuleInterface |
||
46 | |||
47 | /** |
||
48 | * @return RuleInterface |
||
49 | */ |
||
50 | public static function isEmail(): RuleInterface |
||
54 | |||
55 | /** |
||
56 | * @return RuleInterface |
||
57 | */ |
||
58 | public static function isExistingPaymentPlan(): RuleInterface |
||
62 | } |
||
63 |