Shop_Currency_Driver_Floatrates
extends Shop_Currency_Driver
in package
Daily Foreign Exchange Rates for U.S. Dollar (USD)
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : self
- Executes the business logic.
- instance() : object
- Register an existing instance as a singleton.
- _getDriverName() : srting
- Get full driver name
Properties
$instance
The singleton instances.
public
static mixed
$instance
= array()
$_config
Driver's configuration
protected
mixed
$_config
= \NULL
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $config) : mixed
Parameters
- $config : array<string|int, mixed>
-
config
execute()
Executes the business logic.
public
execute() : self
Return values
selfinstance()
Register an existing instance as a singleton.
public
static instance([string $name = 'default' ]) : object
Parameters
- $name : string = 'default'
-
driver's name
Return values
object_getDriverName()
Get full driver name
protected
static _getDriverName(string $driver) : srting
Parameters
- $driver : string
-
driver name