| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | final class FixtureFileUploader implements FixtureFileUploaderInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var FilesystemInterface |
||
| 24 | */ |
||
| 25 | private FilesystemInterface $filesystem; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param FilesystemInterface $filesystem |
||
| 29 | */ |
||
| 30 | public function __construct(FilesystemInterface $filesystem) |
||
| 31 | { |
||
| 32 | $this->filesystem = $filesystem; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param File $file |
||
| 37 | * @param string $target |
||
| 38 | */ |
||
| 39 | public function upload(File $file, string $target): void |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $path |
||
| 55 | * |
||
| 56 | * @return bool |
||
| 57 | */ |
||
| 58 | public function remove(string $path): bool |
||
| 65 | } |
||
| 66 | } |
||
| 67 |