/** * Constructor * @param MVC\Db\Adapter $adapter Database adapter */ public function __construct($adapter = null) { // Set the default database adapter if none supplied if ($adapter == null) { $adapter = Db::getDefaultAdapter(); } $this->adapter = $adapter; }