Engine
in package
Table of Contents
Properties
- $currentDriver : null|Driver
- $driverFactory : null|DriverFactory
- $drivers : array<string|int, mixed>
Methods
- clear() : void
- dispatch() : mixed
- loadDriver() : void
- setDriver() : void
- setDriverFactory() : void
- start() : void
- useDriver() : void
- driver() : DriverBase
Properties
$currentDriver
protected
static null|Driver
$currentDriver
= null
$driverFactory
protected
static null|DriverFactory
$driverFactory
= null
$drivers
protected
static array<string|int, mixed>
$drivers
= []
Methods
clear()
public
static clear() : void
dispatch()
public
static dispatch(Action $action[, null|Driver $driver = null ][, mixed $args = null ]) : mixed
Parameters
loadDriver()
public
static loadDriver(array<string|int, mixed> $config) : void
Parameters
- $config : array<string|int, mixed>
setDriver()
public
static setDriver(DriverBase $engineDriver, Driver $driver) : void
Parameters
- $engineDriver : DriverBase
- $driver : Driver
setDriverFactory()
public
static setDriverFactory(DriverFactory $driverFactory) : void
Parameters
- $driverFactory : DriverFactory
start()
public
static start() : void
useDriver()
public
static useDriver(Driver $driver) : void
Parameters
- $driver : Driver
driver()
private
static driver() : DriverBase