Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class FixtureFileUploader |
||
11 | { |
||
12 | private $fileUploader; |
||
13 | |||
14 | public function __construct( |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param FileInterface $entity |
||
22 | * @param File $file |
||
23 | * @param string $field |
||
24 | * @return \Silverback\ApiComponentBundle\Entity\Component\FileInterface |
||
25 | * @throws \Exception |
||
26 | */ |
||
27 | public function upload(FileInterface $entity, File $file, string $field = 'filePath'): FileInterface |
||
52 |