PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / vendor_prefixed / psr / http-factory / src / UploadedFileFactoryInterface.php

UploadedFileFactoryInterface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at vendor_prefixed/psr/http-factory/src/UploadedFileFactoryInterface.php

29 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YoastSEO_Vendor\Psr\Http\Message;
4
5 interface UploadedFileFactoryInterface
6 {
7 /**
8 * Create a new uploaded file.
9 *
10 * If a size is not provided it will be determined by checking the size of
11 * the file.
12 *
13 * @see http://php.net/manual/features.file-upload.post-method.php
14 * @see http://php.net/manual/features.file-upload.errors.php
15 *
16 * @param StreamInterface $stream Underlying stream representing the
17 * uploaded file content.
18 * @param int|null $size in bytes
19 * @param int $error PHP file upload error
20 * @param string|null $clientFilename Filename as provided by the client, if any.
21 * @param string|null $clientMediaType Media type as provided by the client, if any.
22 *
23 * @return UploadedFileInterface
24 *
25 * @throws \InvalidArgumentException If the file resource is not readable.
26 */
27 public function createUploadedFile(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null) : \YoastSEO_Vendor\Psr\Http\Message\UploadedFileInterface;
28 }
29