src/Configuration.php
public function setCurlConnectTimeout($seconds)
    {
        if (!is_numeric($seconds) || $seconds < 0) {
            throw new \InvalidArgumentException('Connect timeout value must be numeric and a non-negative number.');
        }

        $this->curlConnectTimeout = $seconds;
        return $this;
    }
public function setCurlConnectTimeout($seconds)
    {
        if (!is_numeric($seconds) || $seconds < 0) {
            throw new \InvalidArgumentException('Connect timeout value must be numeric and a non-negative number.');
        }

        $this->curlConnectTimeout = $seconds;
        return $this;
    }
public function setCurlConnectTimeout ( $ seconds ) { if ( ! is_numeric ( $ seconds ) || $ seconds < 0 ) { throw new \ InvalidArgumentException ( 'Connect timeout value must be numeric and a non-negative number.' ) ; } $ this -> curlConnectTimeout = $ seconds ; return $ this ; }
Sets the HTTP connect timeout value

@param integer $seconds Number of seconds before connection times out [set to 0 for no timeout]

@return Configuration
Sets the HTTP connect timeout value