| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | class Database extends \Alxarafe\Base\Database |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * It can be received as a database type, the name used in Dolibarr. For compatibility, |
||
| 34 | * if the name used in Dolibarr is in the index (e.g. mysqli), the value will be used |
||
| 35 | * (e.g. mysql). |
||
| 36 | */ |
||
| 37 | private const DB_TYPES = [ |
||
| 38 | 'mysqli' => 'mysql', |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Construct the database access |
||
| 43 | * |
||
| 44 | * @param $db |
||
| 45 | * |
||
| 46 | * @throws DebugBarException |
||
| 47 | */ |
||
| 48 | public function __construct($db) |
||
| 56 |