public function setServiceEndpoint(string $endpoint): AbstractClientBuilder
    {
        if (!filter_var($endpoint, FILTER_VALIDATE_URL) || parse_url($endpoint, PHP_URL_SCHEME) !== 'https') {
            throw new \InvalidArgumentException('Incorrect endpoint given');
        }

        $this->endpoint = $endpoint;

        return $this;
    }
public function setServiceEndpoint(string $endpoint): AbstractClientBuilder
    {
        if (!filter_var($endpoint, FILTER_VALIDATE_URL) || parse_url($endpoint, PHP_URL_SCHEME) !== 'https') {
            throw new \InvalidArgumentException('Incorrect endpoint given');
        }

        $this->endpoint = $endpoint;

        return $this;
    }
public function setServiceEndpoint ( string $ endpoint ) : AbstractClientBuilder { if ( ! filter_var ( $ endpoint , FILTER_VALIDATE_URL ) || parse_url ( $ endpoint , PHP_URL_SCHEME ) !== 'https' ) { throw new \ InvalidArgumentException ( 'Incorrect endpoint given' ) ; } $ this -> endpoint = $ endpoint ; return $ this ; }
Set endpoint for SOAP service.

@param string $endpoint

@return AbstractClientBuilder
Set endpoint for SOAP service .