1 | <?php |
||
17 | trait FileTrait |
||
18 | { |
||
19 | /** |
||
20 | * @var FilesInterface |
||
21 | */ |
||
22 | protected $files; |
||
23 | |||
24 | /** |
||
25 | * Internal method to fetch filename using multiple input formats. |
||
26 | * |
||
27 | * @param mixed|UploadedFileInterface $filename |
||
28 | * @param bool $onlyUploaded Check if file uploaded. |
||
29 | * |
||
30 | * @return string|bool |
||
31 | */ |
||
32 | protected function filename($filename, bool $onlyUploaded = true) |
||
51 | |||
52 | /** |
||
53 | * Check if file being uploaded. |
||
54 | * |
||
55 | * @param mixed|UploadedFileInterface $filename Filename or file array. |
||
56 | * |
||
57 | * @return bool |
||
58 | */ |
||
59 | private function isUploaded($filename): bool |
||
76 | } |