1 | <?php |
||
7 | abstract class Validate { |
||
8 | |||
9 | # Validate param |
||
10 | |||
11 | private static function validate(string $string, string $regex, int $min, int $max) { |
||
17 | |||
18 | # Validate auth code |
||
19 | |||
20 | public static function code(string $code) { |
||
24 | |||
25 | # Validate user name |
||
26 | |||
27 | public static function userName(string $name) { |
||
33 | |||
34 | # Validate user password |
||
35 | |||
36 | public static function userPassword(string $password) { |
||
42 | } |
||
43 | } |
||
44 |