Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
12 | class AssessUsersWebhook extends Webhook |
||
13 | { |
||
14 | /** |
||
15 | * @var AssessmentService |
||
16 | */ |
||
17 | protected $assessmentService; |
||
18 | |||
19 | /** |
||
20 | * AssessUsersWebhook constructor. |
||
21 | * |
||
22 | * @param AssessmentService $assessmentService |
||
23 | */ |
||
24 | public function __construct(AssessmentService $assessmentService) |
||
25 | { |
||
26 | $this->assessmentService = $assessmentService; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * The payload validation rules. |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | protected function rules(): array |
||
39 | ]; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Handle the incoming request. |
||
44 | * |
||
45 | * @param array $payload |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | public function handle(array $payload) |
||
53 | ); |
||
54 | } |
||
55 | } |