Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nohponex committed Dec 8, 2015
2 parents dc301da + 4dd61a2 commit d15fdfe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Database
/**
* @var IAdapter
*/
protected static $adapter;
protected static $adapter = null;

public static function setAdapter($adapter)
{
Expand All @@ -52,6 +52,15 @@ public static function setAdapter($adapter)
self::$adapter = $adapter;
}

/**
* Get current adapter
* @return IAdapter|null
*/
public static function getAdapter()
{
return self::$adapter;
}

/**
* Get adapter's name
* @return string Adapter's name (lowercase)
Expand Down

0 comments on commit d15fdfe

Please sign in to comment.