|
2 | 2 |
|
3 | 3 | namespace Interop\Http\Factory; |
4 | 4 |
|
5 | | -use Psr\Http\Message\StreamInterface; |
6 | | -use Psr\Http\Message\UploadedFileInterface; |
| 5 | +use Psr\Http\Message\UploadedFileFactoryInterface as PsrUploadedFileFactoryInterface; |
7 | 6 |
|
8 | | -interface UploadedFileFactoryInterface |
| 7 | +interface UploadedFileFactoryInterface extends PsrUploadedFileFactoryInterface |
9 | 8 | { |
10 | | - /** |
11 | | - * Create a new uploaded file. |
12 | | - * |
13 | | - * If a size is not provided it will be determined by checking the size of |
14 | | - * the file. |
15 | | - * |
16 | | - * @see http://php.net/manual/features.file-upload.post-method.php |
17 | | - * @see http://php.net/manual/features.file-upload.errors.php |
18 | | - * |
19 | | - * @param StreamInterface $stream Underlying stream representing the |
20 | | - * uploaded file content. |
21 | | - * @param int $size in bytes |
22 | | - * @param int $error PHP file upload error |
23 | | - * @param string $clientFilename Filename as provided by the client, if any. |
24 | | - * @param string $clientMediaType Media type as provided by the client, if any. |
25 | | - * |
26 | | - * @return UploadedFileInterface |
27 | | - * |
28 | | - * @throws \InvalidArgumentException If the file resource is not readable. |
29 | | - */ |
30 | | - public function createUploadedFile( |
31 | | - StreamInterface $stream, |
32 | | - int $size = null, |
33 | | - int $error = \UPLOAD_ERR_OK, |
34 | | - string $clientFilename = null, |
35 | | - string $clientMediaType = null |
36 | | - ): UploadedFileInterface; |
37 | 9 | } |
0 commit comments