Airship\Engine\Database::getDriver PHP Метод

getDriver() публичный метод

Which database driver are we operating on?
public getDriver ( ) : string
Результат string
    public function getDriver() : string
    {
        return $this->dbengine;
    }

Usage Example

Пример #1
0
 public function testConstruct()
 {
     $config = $this->getConfig(true);
     try {
         $pdo = new \PDO(...$config);
     } catch (\Exception $ex) {
         $this->markTestSkipped('Database not configured');
         return;
     }
     $db = new Database($pdo, self::DRIVER);
     $this->assertTrue($db instanceof Database);
     $this->assertTrue($db->getDriver() === self::DRIVER);
 }