public function __construct($connection, $config = []) { $this->db = $connection; parent::__construct($config); }