You are here

public function Wait::setTimeOut in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/Wait.php \Smartling\Wait::setTimeOut()
  2. 8.2 api-sdk-php/src/Wait.php \Smartling\Wait::setTimeOut()
  3. 8.2 vendor/smartling/api-sdk-php/src/Wait.php \Smartling\Wait::setTimeOut()

Parameters

int $timeOut:

File

vendor/smartling/api-sdk-php/src/Wait.php, line 28

Class

Wait
Trait Wait @package Smartling

Namespace

Smartling

Code

public function setTimeOut($timeOut) {
  if ($timeOut <= 0) {
    throw new \InvalidArgumentException('Timeout value must be more or grater then zero.');
  }
  $this->timeOut = $timeOut;
}