You are here

class CancelJobParameters in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/Jobs/Params/CancelJobParameters.php \Smartling\Jobs\Params\CancelJobParameters

Class CancelJobParameters @package Jobs\Params

Hierarchy

Expanded class hierarchy of CancelJobParameters

4 files declare their use of CancelJobParameters
JobsApi.php in vendor/smartling/api-sdk-php/src/Jobs/JobsApi.php
JobsApiFunctionalTest.php in vendor/smartling/api-sdk-php/tests/functional/JobsApiFunctionalTest.php
JobsApiTest.php in vendor/smartling/api-sdk-php/tests/unit/JobsApiTest.php
SmartlingApiWrapper.php in src/Smartling/SmartlingApiWrapper.php
SmartlingApiWrapper.php.

File

vendor/smartling/api-sdk-php/src/Jobs/Params/CancelJobParameters.php, line 11

Namespace

Smartling\Jobs\Params
View source
class CancelJobParameters extends BaseParameters {

  /**
   * @param string $reason
   */
  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);
  }

}

Members