class Connection (View source)

Methods

__construct(AbstractConnection $adapter)

Connection constructor.

getAdapter()

Returns the connection to a database.

setAdapter(AbstractConnection $adapter)

Set the adaptor

Details

__construct(AbstractConnection $adapter)

Connection constructor.

Parameters

AbstractConnection $adapter

AbstractConnection getAdapter()

Returns the connection to a database.

Return Value

AbstractConnection

setAdapter(AbstractConnection $adapter)

Set the adaptor

Parameters

AbstractConnection $adapter