| 1 | <?php |
||
| 10 | abstract class UserValidation extends BaseValidation |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Validate and sanitize input data when create new user. |
||
| 14 | * |
||
| 15 | * @param array $input |
||
| 16 | * @return string |
||
| 17 | * @throws \Exception |
||
| 18 | */ |
||
| 19 | public static function validateInputOnCreateUser($input) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Validate and sanitize input data when update a user. |
||
| 35 | * |
||
| 36 | * @param array $input |
||
| 37 | * @param object $user |
||
| 38 | * @return string |
||
| 39 | * @throws \Exception |
||
| 40 | */ |
||
| 41 | public static function validateInputOnUpdateUser($input, $user) |
||
| 57 | } |
||
| 58 |