Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | namespace Apie\Core\FileStorage; |
3 | |
4 | use Psr\Http\Message\UploadedFileInterface; |
5 | |
6 | interface FileStorageInterface |
7 | { |
8 | /** |
9 | * @template T of StoredFile |
10 | * @param class-string<T> $className |
11 | * @return T |
12 | */ |
13 | public function createNewUpload( |
14 | UploadedFileInterface $fileUpload, |
15 | string $className = StoredFile::class |
16 | ): StoredFile; |
17 | |
18 | /** |
19 | * @template T of StoredFile |
20 | * @param class-string<T> $className |
21 | * @return T |
22 | */ |
23 | public function getProxy( |
24 | string $storagePath, |
25 | string $className = StoredFile::class |
26 | ): StoredFile; |
27 | |
28 | /** |
29 | * @template T of StoredFile |
30 | * @param class-string<T> $className |
31 | * @return T |
32 | */ |
33 | public function loadFromStorage( |
34 | string $storagePath, |
35 | string $className = StoredFile::class |
36 | ): StoredFile; |
37 | } |