You are here

trait Wait in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/src/Wait.php \Smartling\Wait
  2. 8.2 vendor/smartling/api-sdk-php/src/Wait.php \Smartling\Wait
  3. 8.3 vendor/smartling/api-sdk-php/src/Wait.php \Smartling\Wait

Trait Wait @package Smartling

Hierarchy

  • trait \Smartling\Wait
1 file declares its use of Wait
ContextApi.php in vendor/smartling/api-sdk-php/src/Context/ContextApi.php

File

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

Namespace

Smartling
View source
trait Wait {

  /**
   * Timeout for sync requests in seconds.
   *
   * @var int
   */
  private $timeOut = 15;

  /**
   * @return int
   */
  public function getTimeOut() {
    return $this->timeOut;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
Wait::$timeOut private property Timeout for sync requests in seconds.
Wait::getTimeOut public function
Wait::setTimeOut public function