$streamOrFile,
?int
$size,
int
$errorStatus,
string
$clientFilename = null,
string
$clientMediaType = null
) { $this->
setError($errorStatus);
$this->size =
$size;
$this->clientFilename =
$clientFilename;
$this->clientMediaType =
$clientMediaType;
if ($this->
isOk()) { $this->
setStreamOrFile($streamOrFile);
} } /**
* Depending on the value set file or stream variable
*
* @param StreamInterface|string|resource $streamOrFile
*
* @throws InvalidArgumentException
*/