public function DownloadFileParameters::setRetrievalType in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.2 api-sdk-php/src/File/Params/DownloadFileParameters.php \Smartling\File\Params\DownloadFileParameters::setRetrievalType()
- 8.2 vendor/smartling/api-sdk-php/src/File/Params/DownloadFileParameters.php \Smartling\File\Params\DownloadFileParameters::setRetrievalType()
- 8.3 vendor/smartling/api-sdk-php/src/File/Params/DownloadFileParameters.php \Smartling\File\Params\DownloadFileParameters::setRetrievalType()
Parameters
string $retrievalType:
Return value
Throws
File
- vendor/
smartling/ api-sdk-php/ src/ File/ Params/ DownloadFileParameters.php, line 28
Class
- DownloadFileParameters
- Class DownloadFileParameters
Namespace
Smartling\File\ParamsCode
public function setRetrievalType($retrievalType) {
$validRetrivalType = in_array($retrievalType, [
self::RETRIEVAL_TYPE_PENDING,
self::RETRIEVAL_TYPE_PUBLISHED,
self::RETRIEVAL_TYPE_PSEUDO,
], true);
if (!$validRetrivalType) {
throw new SmartlingApiException('Unknown retrieval type: ' . var_export($retrievalType, true));
}
$this
->set('retrievalType', $retrievalType);
return $this;
}