Gateways extends Component
Factory class for creating Gateway objects
Table of Contents
Properties
| $components | |
| $helpers | |
| $models | |
| $gw_types |
Methods
| __construct() | |
| create() | Creates and returns an instance of the given gateway |
Methods
__construct()
public
__construct() : mixed
create()
Creates and returns an instance of the given gateway
public
static create(string $gw_name, string $type) : object
Parameters
- $gw_name : string
-
The name of the Gateway to load
- $type : string
-
The type of gateway to load. Accepted types are listed in Gateways::$gw_name
Tags
Return values
object —An instance of the requested Gateway