public function CancelJobParameters::setReason in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/src/Jobs/Params/CancelJobParameters.php \Smartling\Jobs\Params\CancelJobParameters::setReason()
Parameters
string $reason:
File
- vendor/
smartling/ api-sdk-php/ src/ Jobs/ Params/ CancelJobParameters.php, line 17
Class
- CancelJobParameters
- Class CancelJobParameters @package Jobs\Params
Namespace
Smartling\Jobs\ParamsCode
public function setReason($reason) {
if (mb_strlen($reason, 'UTF-8') > 4096) {
throw new \InvalidArgumentException('Reason should be less or equal to 4096 characters.');
}
$this
->set('reason', $reason);
}