Added method getDBH DBmaintainer
This commit is contained in:
parent
1f968a0ce0
commit
3bb615a639
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue