| Total Complexity | 4 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class WebhookEndpoint extends Endpoint |
||
| 17 | { |
||
| 18 | |||
| 19 | protected string $location = '/service/resources/webhooks'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Endpoint para criar um recurso `webhook` |
||
| 23 | * |
||
| 24 | * @param Webhook $webhook |
||
| 25 | * @return Response |
||
| 26 | */ |
||
| 27 | public function create(Webhook $webhook): Response |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Endpoint para obter um recurso `webhook` |
||
| 34 | * |
||
| 35 | * @param integer $id |
||
| 36 | * @return Response |
||
| 37 | * |
||
| 38 | * @codeCoverageIgnore |
||
| 39 | */ |
||
| 40 | public function get(int $id): Response |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Endpoint para listar recursos `webhook` |
||
| 47 | * |
||
| 48 | * @param array|null $filters |
||
| 49 | * @return Response |
||
| 50 | * |
||
| 51 | * @codeCoverageIgnore |
||
| 52 | */ |
||
| 53 | public function list(?array $filters = []): Response |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Endpoint para deletar um recurso `webhook` |
||
| 60 | * |
||
| 61 | * @param integer $id |
||
| 62 | * @return Response |
||
| 63 | * |
||
| 64 | * @codeCoverageIgnore |
||
| 65 | */ |
||
| 66 | public function delete(int $id): Response |
||
| 71 | } |