\Phinx\Db\AdapterWrapperInterface

Wrapper Interface.

Summary

Methods
Constants
__construct()
setAdapter()
getAdapter()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

__construct()

__construct(\Phinx\Db\Adapter\AdapterInterface  $adapter) 

Class constructor, must always wrap another adapter.

Parameters

\Phinx\Db\Adapter\AdapterInterface $adapter

getAdapter()

getAdapter() : \Phinx\Db\Adapter\AdapterInterface

Gets the database adapter.

Throws

\RuntimeException

if the adapter has not been set

Returns

\Phinx\Db\Adapter\AdapterInterface