Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 25% |
Changes | 0 |
1 | <?php |
||
12 | class UserSyncWebhook extends Webhook |
||
13 | { |
||
14 | /** |
||
15 | * The payload validation rules. |
||
16 | * |
||
17 | * @return array |
||
18 | */ |
||
19 | 1 | protected function rules(): array |
|
20 | { |
||
21 | return [ |
||
22 | 1 | 'user' => 'required|array', |
|
23 | 'user.id' => 'required|int', |
||
24 | 'user.name' => 'string', |
||
25 | 'user.email' => 'required|email', |
||
26 | 'user.country' => 'required|string|size:2', |
||
27 | 'user.password' => 'string', |
||
28 | 'user.created_at' => 'required|string', |
||
29 | 'user.updated_at' => 'string', |
||
30 | 'user.action' => 'required|string', |
||
31 | ]; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Handle the incoming request. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function handle() |
||
49 | } |
||
50 | } |