PaymentGatewayRegistry
in package
FinalYes
Table of Contents
Properties
- $container : Container
- $gateways : array<string, PaymentGatewayInterface>|null
Methods
- __construct() : mixed
- get() : PaymentGatewayInterface|null
- has() : bool
- loadGateways() : array<string, PaymentGatewayInterface>
Properties
$container read-only
private
Container
$container
$gateways
private
array<string, PaymentGatewayInterface>|null
$gateways
= null
Methods
__construct()
public
__construct(Container $container) : mixed
Parameters
- $container : Container
get()
public
get(string $scriptName) : PaymentGatewayInterface|null
Parameters
- $scriptName : string
Return values
PaymentGatewayInterface|nullhas()
public
has(string $scriptName) : bool
Parameters
- $scriptName : string
Return values
boolloadGateways()
private
loadGateways() : array<string, PaymentGatewayInterface>