Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Shared\Infrastructure\Service; |
| 4 | |
| 5 | use App\Shared\Domain\Model\StoredFile; |
| 6 | use App\Shared\Domain\Model\TempFile; |
| 7 | |
| 8 | /** |
| 9 | * @author Wilhelm Zwertvaegher |
| 10 | */ |
| 11 | interface FileStorageProvider |
| 12 | { |
| 13 | public function store(TempFile $tempFile, string $type): TempFile; |
| 14 | |
| 15 | public function delete(StoredFile $storedFile): void; |
| 16 | |
| 17 | public function generateUrl(StoredFile $storedFile): string; |
| 18 | |
| 19 | /** |
| 20 | * @return bool |
| 21 | */ |
| 22 | public function supports(string $type): bool; |
| 23 | } |