You are here

private function UploadedFile::setClientMediaType in Lockr 7.3

Parameters

string|null $clientMediaType:

Throws

InvalidArgumentException

1 call to UploadedFile::setClientMediaType()
UploadedFile::__construct in vendor/guzzlehttp/psr7/src/UploadedFile.php

File

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

Class

UploadedFile

Namespace

GuzzleHttp\Psr7

Code

private function setClientMediaType($clientMediaType) {
  if (false === $this
    ->isStringOrNull($clientMediaType)) {
    throw new InvalidArgumentException('Upload file client media type must be a string or null');
  }
  $this->clientMediaType = $clientMediaType;
}