Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class WebhookAttemptsEndpoint extends ResourceEndpoint |
||
17 | { |
||
18 | /** @use ListEndpointTrait<WebhookAttempt> */ |
||
19 | use ListEndpointTrait; |
||
20 | use GetEndpointTrait; |
||
21 | |||
22 | /** |
||
23 | * @param Webhook|string $webhook |
||
24 | */ |
||
25 | public function __construct(WebhooksEndpoint $parent, $webhook) |
||
26 | { |
||
27 | parent::__construct($parent, '/{webhook}/attempts', WebhookAttempt::class, ['webhook' => $webhook]); |
||
28 | } |
||
29 | |||
30 | public function resend(string $id): WebhookAttempt |
||
33 | } |
||
34 | } |
||
35 |