You are here

public function UploadedFile::__construct in Lockr 7.3

Parameters

StreamInterface|string|resource $streamOrFile:

int $size:

int $errorStatus:

string|null $clientFilename:

string|null $clientMediaType:

File

vendor/guzzlehttp/psr7/src/UploadedFile.php, line 67

Class

UploadedFile

Namespace

GuzzleHttp\Psr7

Code

public function __construct($streamOrFile, $size, $errorStatus, $clientFilename = null, $clientMediaType = null) {
  $this
    ->setError($errorStatus);
  $this
    ->setSize($size);
  $this
    ->setClientFilename($clientFilename);
  $this
    ->setClientMediaType($clientMediaType);
  if ($this
    ->isOk()) {
    $this
      ->setStreamOrFile($streamOrFile);
  }
}