src/Api/Domain.php
public function updateConnection(string $domain, ?bool $requireTLS, ?bool $noVerify)
    {
        Assert::stringNotEmpty($domain);
        $params = [];

        if (null !== $requireTLS) {
            $params['require_tls'] = $requireTLS ? 'true' : 'false';
        }

        if (null !== $noVerify) {
            $params['skip_verification'] = $noVerify ? 'true' : 'false';
        }

        $response = $this->httpPut(sprintf('/v3/domains/%s/connection', $domain), $params);

        return $this->hydrateResponse($response, UpdateConnectionResponse::class);
    }
public function updateConnection(string $domain, ?bool $requireTLS, ?bool $noVerify)
    {
        Assert::stringNotEmpty($domain);
        $params = [];

        if (null !== $requireTLS) {
            $params['require_tls'] = $requireTLS ? 'true' : 'false';
        }

        if (null !== $noVerify) {
            $params['skip_verification'] = $noVerify ? 'true' : 'false';
        }

        $response = $this->httpPut(sprintf('/v3/domains/%s/connection', $domain), $params);

        return $this->hydrateResponse($response, UpdateConnectionResponse::class);
    }
public function updateConnection ( string $ domain , ? bool $ requireTLS , ? bool $ noVerify ) { Assert :: stringNotEmpty ( $ domain ) ; $ params = [ ] ; if ( null !== $ requireTLS ) { $ params [ 'require_tls' ] = $ requireTLS ? 'true' : 'false' ; } if ( null !== $ noVerify ) { $ params [ 'skip_verification' ] = $ noVerify ? 'true' : 'false' ; } $ response = $ this -> httpPut ( sprintf ( '/v3/domains/%s/connection' , $ domain ) , $ params ) ; return $ this -> hydrateResponse ( $ response , UpdateConnectionResponse :: class ) ; }
Updates the specified delivery connection settings for the specified domain.
If a parameter is passed in as null, it will not be updated.

@param string    $domain     name of the domain
@param bool|null $requireTLS enforces that messages are sent only over a TLS connection
@param bool|null $noVerify   disables TLS certificate and hostname verification

@return UpdateConnectionResponse|array|ResponseInterface
Updates the specified delivery connection settings for the specified domain . If a parameter is passed in as null it will not be updated .