userAgent = $userAgent; $this->followLocationMaxRedirects = $followLocationMaxRedirects; $this->soapCompression = $soapCompression; $this->connectionTimeout = $connectionTimeout; $this->proxy = $proxy; $this->httpAuthentication = $httpAuthentication; $this->sslCertificateOptions = $sslCertificateOptions; } public function getUserAgent() { return $this->userAgent; } public function getFollowLocationMaxRedirects() { return $this->followLocationMaxRedirects; } public function getSoapCompression() { return $this->soapCompression; } public function getConnectionTimeout() { return $this->connectionTimeout; } public function getProxy() { return $this->proxy; } public function getHttpAuthentication() { return $this->httpAuthentication; } public function getSslCertificateOptions() { return $this->sslCertificateOptions; } public function hasProxy() { return $this->proxy !== null; } public function hasHttpAuthentication() { return $this->httpAuthentication !== null; } public function hasSslCertificateOptions() { return $this->sslCertificateOptions !== null; } public function hasHttpAuthenticationBasic() { if ($this->hasHttpAuthentication()) { if ($this->getHttpAuthentication() instanceof HttpAuthenticationBasicOptions) { return true; } } return false; } public function hasHttpAuthenticationDigest() { if ($this->hasHttpAuthentication()) { if ($this->getHttpAuthentication() instanceof HttpAuthenticationDigestOptions) { return true; } } return false; } }