final class BankIDClientFactory implements BankIDClientFactoryInterface

Instantiates a BankID client based on configuration.

Methods

__construct(BankIDConfigInterface $config, Closure|BankIDMockClient $bankidMock, Closure|BankIDClient $bankid)

Constructs a ClientSelector object.

get()

Retrieves the appropriate BankID client based on the current environment.

Details

at line 15
__construct(BankIDConfigInterface $config, Closure|BankIDMockClient $bankidMock, Closure|BankIDClient $bankid)

Constructs a ClientSelector object.

Parameters

BankIDConfigInterface $config
Closure|BankIDMockClient $bankidMock
Closure|BankIDClient $bankid

at line 24
BankIDClientInterface get()

Retrieves the appropriate BankID client based on the current environment.

Return Value

BankIDClientInterface

The BankID client instance, either mock or live.