ClientFactory
class ClientFactory (View source)
ClientFactory
Methods
getClient(string $registrar)
Returns the registrar-specific Client instance.
Details
static SessionClient|SessionClient|SessionClient
getClient(string $registrar)
Returns the registrar-specific Client instance.
The factory resolves the registrar identifier to its Client subtype only. All further configuration — credentials, referer, user-agent, proxy, logging and OT&E/sandbox mode — is the caller's responsibility via the client's fluent setters. This keeps the SDK platform-agnostic and transport-faithful: the caller normalizes input (e.g. HTML-entity decoding of WHMCS-stored passwords) before handing it to the client.