| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class DeliveryRecipientsEndpoint extends ResourceEndpoint |
||
| 19 | { |
||
| 20 | /** @use CRUDEndpointTrait<DeliveryRecipient> */ |
||
| 21 | use CRUDEndpointTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param Delivery|string $delivery |
||
| 25 | */ |
||
| 26 | public function __construct(DeliveriesEndpoint $parent, $delivery) |
||
| 27 | { |
||
| 28 | parent::__construct($parent, '/{delivery}/recipients', DeliveryRecipient::class, ['delivery' => $delivery]); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param DeliveryRecipient|string $recipient |
||
| 33 | */ |
||
| 34 | public function block($recipient): RecipientBlockEndpoint |
||
| 37 | } |
||
| 38 | |||
| 39 | public function resend(string $id): ResourceInterface |
||
| 42 | } |
||
| 43 | } |
||
| 44 |