public function getAdapter(string $driver, string $connection = null)
    {
        if (array_key_exists($driver, $this->drivers)) {
            return $this->drivers[$driver]->getAdapter($connection);
        }
    }
public function getAdapter(string $driver, string $connection = null)
    {
        if (array_key_exists($driver, $this->drivers)) {
            return $this->drivers[$driver]->getAdapter($connection);
        }
    }
public function getAdapter ( string $ driver , string $ connection = null ) { if ( array_key_exists ( $ driver , $ this -> drivers ) ) { return $ this -> drivers [ $ driver ] -> getAdapter ( $ connection ) ; } }
Get the DBAdapter.

@param string $driver
@param string $connection connection name for drivers supporting multiple connection.

@return DBAdapter
Get the DBAdapter .