ConnectionWatcher
in package
Class ConnectionWatcher This class will watch for new database connection and store a reference to the connection object.
Table of Contents
Properties
- $connections : array<string|int, Connection>
- $handler : mixed
Methods
- __construct() : mixed
- closeAll() : mixed
- start() : mixed
- stop() : mixed
- connectionOpened() : mixed
- debug() : mixed
Properties
$connections
private
array<string|int, Connection>
$connections
= []
$handler
private
mixed
$handler
Methods
__construct()
public
__construct() : mixed
closeAll()
public
closeAll() : mixed
start()
public
start() : mixed
stop()
public
stop() : mixed
connectionOpened()
protected
connectionOpened(Connection $connection) : mixed
Parameters
- $connection : Connection
debug()
protected
debug(mixed $message) : mixed
Parameters
- $message : mixed