src/net/http/HttpClient.php
public function setTimeout($timeout) {
        if (!is_int($timeout)) throw new IllegalTypeException('Illegal type of parameter $timeout: '.gettype($timeout));
        if ($timeout < 1)      throw new InvalidArgumentException('Invalid argument $timeout: '.$timeout);

        $this->timeout = $timeout;
        return $this;
    }
public function setTimeout($timeout) {
        if (!is_int($timeout)) throw new IllegalTypeException('Illegal type of parameter $timeout: '.gettype($timeout));
        if ($timeout < 1)      throw new InvalidArgumentException('Invalid argument $timeout: '.$timeout);

        $this->timeout = $timeout;
        return $this;
    }
public function setTimeout ( $ timeout ) { if ( ! is_int ( $ timeout ) ) throw new IllegalTypeException ( 'Illegal type of parameter $timeout: ' . gettype ( $ timeout ) ) ; if ( $ timeout < 1 ) throw new InvalidArgumentException ( 'Invalid argument $timeout: ' . $ timeout ) ; $ this -> timeout = $ timeout ; return $ this ; }
Setzt den Verbindungs-Timeout.

@param  int $timeout - Timeout in Sekunden

@return $this
Setzt den Verbindungs - Timeout .