Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function createUploadedFile( |
||
23 | StreamInterface $stream, |
||
24 | int $size = null, |
||
25 | int $error = \UPLOAD_ERR_OK, |
||
26 | string $clientFilename = null, |
||
27 | string $clientMediaType = null |
||
28 | ): UploadedFileInterface { |
||
29 | if ($size === null) { |
||
30 | $size = $stream->getSize(); |
||
31 | } |
||
32 | |||
33 | return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType); |
||
34 | } |
||
35 | } |