1 | <?php declare(strict_types=1); |
||
28 | class Rules extends \Limoncello\Validation\Rules |
||
29 | { |
||
30 | /** @var string Message Template */ |
||
31 | const MESSAGE_TEMPLATE_EMAIL = 'The value should be a valid email address.'; |
||
32 | |||
33 | /** |
||
34 | * @return RuleInterface |
||
35 | */ |
||
36 | public static function sku(): RuleInterface |
||
40 | |||
41 | /** |
||
42 | * @param int $max |
||
43 | * |
||
44 | * @return RuleInterface |
||
45 | */ |
||
46 | public static function amount(int $max): RuleInterface |
||
52 | |||
53 | /** |
||
54 | * @return RuleInterface |
||
55 | */ |
||
56 | public static function deliveryDate(): RuleInterface |
||
60 | |||
61 | /** |
||
62 | * @return RuleInterface |
||
63 | */ |
||
64 | public static function email(): RuleInterface |
||
76 | |||
77 | /** |
||
78 | * @return RuleInterface |
||
79 | */ |
||
80 | public static function address1(): RuleInterface |
||
84 | |||
85 | /** |
||
86 | * @return RuleInterface |
||
87 | */ |
||
88 | public static function address2(): RuleInterface |
||
92 | |||
93 | /** |
||
94 | * @return RuleInterface |
||
95 | */ |
||
96 | public static function areTermsAccepted(): RuleInterface |
||
100 | } |
||
101 |