public function setTimeout($timeout)
    {
        if (is_string($timeout) && ctype_digit($timeout)) {
            $timeout = (int) $timeout;
        } elseif (!is_int($timeout)) {
            throw new \RuntimeException('Unable to set timeout.');
        }
        $this->timeout = $timeout;

        return $this;
    }
public function setTimeout($timeout)
    {
        if (is_string($timeout) && ctype_digit($timeout)) {
            $timeout = (int) $timeout;
        } elseif (!is_int($timeout)) {
            throw new \RuntimeException('Unable to set timeout.');
        }
        $this->timeout = $timeout;

        return $this;
    }
public function setTimeout ( $ timeout ) { if ( is_string ( $ timeout ) && ctype_digit ( $ timeout ) ) { $ timeout = ( int ) $ timeout ; } elseif ( ! is_int ( $ timeout ) ) { throw new \ RuntimeException ( 'Unable to set timeout.' ) ; } $ this -> timeout = $ timeout ; return $ this ; }
Sets the timeout in MS.

@param int $timeout

@return Client
@throws \RuntimeException
Sets the timeout in MS .