You are here

class ListJobsParameters in TMGMT Translator Smartling 8.4

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

Hierarchy

Expanded class hierarchy of ListJobsParameters

4 files declare their use of ListJobsParameters
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/ListJobsParameters.php, line 7

Namespace

Smartling\Jobs\Params
View source
class ListJobsParameters extends BaseParameters {
  public function __construct($jobName = null, $limit = null, $offset = null) {
    $this
      ->setName($jobName);
    $this
      ->setLimit($limit);
    $this
      ->setOffset($offset);
  }
  public function setName($jobName) {
    if (null !== $jobName) {
      if (mb_strlen($jobName, 'UTF-8') >= 170) {
        throw new \InvalidArgumentException('Job name should be less than 170 characters.');
      }
      $this
        ->set('jobName', $jobName);
    }
  }
  public function setLimit($limit) {
    if (null !== $limit && 0 < (int) $limit) {
      $this
        ->set('limit', (int) $limit);
    }
  }
  public function setOffset($offset) {
    if (null !== $offset && 0 < (int) $offset) {
      $this
        ->set('offset', (int) $offset);
    }
  }
  public function setStatuses(array $statuses) {
    $this
      ->set('translationJobStatus', $statuses);
  }

}

Members