Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | trait HasMediaFiles |
||
21 | { |
||
22 | /** @var Collection<string, \Hyde\Support\Filesystem\MediaFile> The Collection keys are the filenames relative to the _media/ directory */ |
||
23 | protected Collection $assets; |
||
24 | |||
25 | /** |
||
26 | * Get all media files in the project. |
||
27 | * |
||
28 | * @return Collection<string, \Hyde\Support\Filesystem\MediaFile> |
||
29 | */ |
||
30 | public function assets(): Collection |
||
33 | } |
||
34 | |||
35 | protected static function discoverMediaFiles(): Collection |
||
41 | }); |
||
42 | } |
||
43 | |||
44 | protected static function getMediaFiles(): array |
||
51 |