| Total Complexity | 11 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait UploadEntityResponse |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Specify whether Larupload should return meta values on getAttribute or not. |
||
| 15 | */ |
||
| 16 | protected bool $withMeta; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Specify whether Larupload should return responses in camel-case or not. |
||
| 20 | */ |
||
| 21 | protected bool $camelCaseResponse; |
||
| 22 | |||
| 23 | |||
| 24 | public function withMeta(bool $status): UploadEntities |
||
| 25 | { |
||
| 26 | $this->withMeta = $status; |
||
| 27 | |||
| 28 | return $this; |
||
|
|
|||
| 29 | } |
||
| 30 | |||
| 31 | protected function storageUrl(string $path): ?string |
||
| 50 | } |
||
| 51 | |||
| 52 | protected function storageDownload(string $path): StreamedResponse|RedirectResponse|null |
||
| 71 |