private function getDriver(): \BearFramework\App\IDataDriver
    {
        if ($this->driver !== null) {
            return $this->driver;
        }
        throw new \Exception('No data driver specified! Use useFileDriver() or setDriver() to specify one.');
    }
private function getDriver(): \BearFramework\App\IDataDriver
    {
        if ($this->driver !== null) {
            return $this->driver;
        }
        throw new \Exception('No data driver specified! Use useFileDriver() or setDriver() to specify one.');
    }
private function getDriver ( ) : \ BearFramework \ App \ IDataDriver { if ( $ this -> driver !== null ) { return $ this -> driver ; } throw new \ Exception ( 'No data driver specified! Use useFileDriver() or setDriver() to specify one.' ) ; }
Returns the data driver.

@return \BearFramework\App\IDataDriver
@throws \Exception
Returns the data driver .