public function timeout($connection = 30, $response = 30) {

		if(false === ('-' . intval($connection) == '-' . $connection)) {
            return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($connection)), E_USER_ERROR);
        }

        if(false === ('-' . intval($response) == '-' . $response)) {
            return trigger_error(sprintf('Argument 2 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($response)), E_USER_ERROR);
        }

		$this -> options[CURLOPT_CONNECTTIMEOUT] = intval($connection);
		$this -> options[CURLOPT_TIMEOUT] 		 = intval($response);

		return $this;
	}
public function timeout($connection = 30, $response = 30) {

		if(false === ('-' . intval($connection) == '-' . $connection)) {
            return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($connection)), E_USER_ERROR);
        }

        if(false === ('-' . intval($response) == '-' . $response)) {
            return trigger_error(sprintf('Argument 2 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($response)), E_USER_ERROR);
        }

		$this -> options[CURLOPT_CONNECTTIMEOUT] = intval($connection);
		$this -> options[CURLOPT_TIMEOUT] 		 = intval($response);

		return $this;
	}
public function timeout ( $ connection = 30 , $ response = 30 ) { if ( false === ( '-' . intval ( $ connection ) == '-' . $ connection ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ connection ) ) , E_USER_ERROR ) ; } if ( false === ( '-' . intval ( $ response ) == '-' . $ response ) ) { return trigger_error ( sprintf ( 'Argument 2 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ response ) ) , E_USER_ERROR ) ; } $ this -> options [ CURLOPT_CONNECTTIMEOUT ] = intval ( $ connection ) ; $ this -> options [ CURLOPT_TIMEOUT ] = intval ( $ response ) ; return $ this ; }
Set the connection and response timeout in seconds for the request
@param int $connection
@param int $response
@return sFire\HTTP\Client
Set the connection and response timeout in seconds for the request