| Total Complexity | 2 | 
| Total Lines | 24 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 18 | final class EnvelopeTemplateDocumentsEndpoint extends ResourceEndpoint | ||
| 19 | { | ||
| 20 | /** @use CRUDEndpointTrait<EnvelopeTemplateDocument> */ | ||
| 21 | use CRUDEndpointTrait; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @param EnvelopeTemplate|string $template | ||
| 25 | */ | ||
| 26 | public function __construct(EnvelopeTemplatesEndpoint $parent, $template) | ||
| 27 |     { | ||
| 28 | parent::__construct( | ||
| 29 | $parent, | ||
| 30 |             '/{template}/documents', | ||
| 31 | EnvelopeTemplateDocument::class, | ||
| 32 | ['template' => $template] | ||
| 33 | ); | ||
| 34 | } | ||
| 35 | |||
| 36 | /** | ||
| 37 | * @param mixed[] $query | ||
| 38 | */ | ||
| 39 | public function download(string $id, array $query = []): FileResponse | ||
| 42 | } | ||
| 43 | } | ||
| 44 |