You are here

CancelJobParameters.php in TMGMT Translator Smartling 8.4

File

vendor/smartling/api-sdk-php/src/Jobs/Params/CancelJobParameters.php
View source
<?php

namespace Smartling\Jobs\Params;

use Smartling\Parameters\BaseParameters;

/**
 * Class CancelJobParameters
 * @package Jobs\Params
 */
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);
  }

}

Classes

Namesort descending Description
CancelJobParameters Class CancelJobParameters @package Jobs\Params