private function getCurlTimeoutSettings(RequestContext $context): array
    {
        $timeoutOptions = [];

        $timeout = $context->getTimeout();

        $timeoutOptions += $this->fillTimeoutOptions($timeout, CURLOPT_TIMEOUT, CURLOPT_TIMEOUT_MS);

        $connectionTimeout = $context->getConnectionTimeout();

        $timeoutOptions += $this->fillTimeoutOptions(
            $connectionTimeout, //@codeCoverageIgnore
            CURLOPT_CONNECTTIMEOUT,
            CURLOPT_CONNECTTIMEOUT_MS
        );

        return $timeoutOptions;
    }
private function getCurlTimeoutSettings(RequestContext $context): array
    {
        $timeoutOptions = [];

        $timeout = $context->getTimeout();

        $timeoutOptions += $this->fillTimeoutOptions($timeout, CURLOPT_TIMEOUT, CURLOPT_TIMEOUT_MS);

        $connectionTimeout = $context->getConnectionTimeout();

        $timeoutOptions += $this->fillTimeoutOptions(
            $connectionTimeout, //@codeCoverageIgnore
            CURLOPT_CONNECTTIMEOUT,
            CURLOPT_CONNECTTIMEOUT_MS
        );

        return $timeoutOptions;
    }
private function getCurlTimeoutSettings ( RequestContext $ context ) : array { $ timeoutOptions = [ ] ; $ timeout = $ context -> getTimeout ( ) ; $ timeoutOptions += $ this -> fillTimeoutOptions ( $ timeout , CURLOPT_TIMEOUT , CURLOPT_TIMEOUT_MS ) ; $ connectionTimeout = $ context -> getConnectionTimeout ( ) ; $ timeoutOptions += $ this -> fillTimeoutOptions ( $ connectionTimeout , //@codeCoverageIgnore CURLOPT_CONNECTTIMEOUT , CURLOPT_CONNECTTIMEOUT_MS ) ; return $ timeoutOptions ; }
Get timeout settings for CURL handler

@link https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html
@link https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html

@param RequestContext $context

@return array
Get timeout settings for CURL handler