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