1 | <?php |
||
11 | class WebhookController extends Controller |
||
12 | { |
||
13 | /** |
||
14 | * Create a new controller instance. |
||
15 | * |
||
16 | * @return void |
||
|
|||
17 | */ |
||
18 | public function __construct() |
||
22 | |||
23 | /** |
||
24 | * Get all of the webhooks generated by the user. |
||
25 | * |
||
26 | * @return Response |
||
27 | */ |
||
28 | public function all(Request $request) |
||
38 | |||
39 | /** |
||
40 | * Create a new webhook for the user. |
||
41 | * |
||
42 | * @param CreateWebhookRequest $request |
||
43 | * @return Response |
||
44 | */ |
||
45 | public function store(CreateWebhookRequest $request) |
||
55 | |||
56 | /** |
||
57 | * Update the given webhook. |
||
58 | * |
||
59 | * @param UpdateWebhookRequest $request |
||
60 | * @param string $webhookId |
||
61 | * @return Response |
||
62 | */ |
||
63 | public function update(UpdateWebhookRequest $request, $webhookId) |
||
73 | |||
74 | /** |
||
75 | * Delete the given webhook. |
||
76 | * |
||
77 | * @param Request $request |
||
78 | * @param string $webhookId |
||
79 | * @return Response |
||
80 | */ |
||
81 | public function destroy(Request $request, $webhookId) |
||
88 | |||
89 | |||
90 | protected function getTenantId(Request $request){ |
||
93 | } |
||
94 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.