You are here

public function SearchRecordParameters::setLimit in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/AuditLog/Params/SearchRecordParameters.php \Smartling\AuditLog\Params\SearchRecordParameters::setLimit()
1 call to SearchRecordParameters::setLimit()
SearchRecordParameters::__construct in vendor/smartling/api-sdk-php/src/AuditLog/Params/SearchRecordParameters.php

File

vendor/smartling/api-sdk-php/src/AuditLog/Params/SearchRecordParameters.php, line 35

Class

SearchRecordParameters

Namespace

Smartling\AuditLog\Params

Code

public function setLimit($limit) {
  if (!is_int($limit) || $limit < 1) {
    throw new InvalidArgumentException('Limit value must be grater or equal to one.');
  }
  $this
    ->set('limit', $limit);
  return $this;
}