Added method getDBH DBmaintainer

This commit is contained in:
fbsanchez 2021-05-10 15:24:33 +02:00
parent 1f968a0ce0
commit 3bb615a639
1 changed files with 13 additions and 1 deletions

View File

@ -151,6 +151,7 @@ final class DBMaintainer
*/
private function connect()
{
// phpcs:disable Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
if ($this->connected === true) {
return true;
}
@ -186,6 +187,17 @@ final class DBMaintainer
}
/**
* Return dbh object.
*
* @return mysqli
*/
public function getDBH()
{
return $this->dbh;
}
/**
* Return connection statuis.
*
@ -319,7 +331,7 @@ final class DBMaintainer
/**
* Verifies tables against running db.
*
* @return boolean Applied or not.
* @return array Of differences.
*/
public function verifyTables()
{