| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class DeliveriesEndpoint extends ResourceEndpoint |
||
| 19 | { |
||
| 20 | /** @use CRUDEndpointTrait<Delivery> */ |
||
| 21 | use CRUDEndpointTrait; |
||
| 22 | |||
| 23 | public function __construct(DigiSign $parent) |
||
| 24 | { |
||
| 25 | parent::__construct($parent, '/api/deliveries', Delivery::class); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Delivery|string $delivery |
||
| 30 | */ |
||
| 31 | public function documents($delivery): DeliveryDocumentsEndpoint |
||
| 32 | { |
||
| 33 | return new DeliveryDocumentsEndpoint($this, $delivery); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param Delivery|string $delivery |
||
| 38 | */ |
||
| 39 | public function recipients($delivery): DeliveryRecipientsEndpoint |
||
| 42 | } |
||
| 43 | |||
| 44 | public function cancel(string $id): BaseResource |
||
| 47 | } |
||
| 48 | |||
| 49 | public function send(string $id): BaseResource |
||
| 52 | } |
||
| 53 | } |
||
| 54 |