public
__construct
(\Joomla\CMS\Adapter\Adapter $parent, \Joomla\Database\DatabaseDriver $db, array $options = array())
/**
* Constructor
*
* @param Adapter $parent Parent object
* @param DatabaseDriver $db Database object
* @param array $options Configuration Options
*
* @since 1.6
*/
public function __construct(Adapter $parent, DatabaseDriver $db, array $options = array())
{
// Set the properties from the options array that is passed in
$this->setProperties($options);
// Set the parent and db in case $options for some reason overrides it.
$this->parent = $parent;
// Pull in the global dbo in case something happened to it.
$this->db = $db ?: Factory::getDbo();
}