src/Traits/Database/DBManagerTrait.php
public function getDbManager(): ?DatabaseManager
    {
        if (!$this->hasDbManager()) {
            $this->setDbManager($this->getDefaultDbManager());
        }
        return $this->dbManager;
    }
public function getDbManager(): ?DatabaseManager
    {
        if (!$this->hasDbManager()) {
            $this->setDbManager($this->getDefaultDbManager());
        }
        return $this->dbManager;
    }
public function getDbManager ( ) : ? DatabaseManager { if ( ! $ this -> hasDbManager ( ) ) { $ this -> setDbManager ( $ this -> getDefaultDbManager ( ) ) ; } return $ this -> dbManager ; }
Get db manager

If no db manager has been set, this method will
set and return a default db manager, if any such
value is available

@see getDefaultDbManager()

@return DatabaseManager|null db manager or null if none db manager has been set
Get db manager