1
1
Fork 0

Add some phpdoc

This commit is contained in:
Philipp Holzer 2019-07-27 15:35:53 +02:00
parent b7f1de1e64
commit aefbc703f2
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90

View file

@ -6,6 +6,10 @@ use Friendica\Database\Database;
use PDO;
use PDOException;
/**
* Overrides the Friendica database class for re-using the connection
* for different tests
*/
class StaticDatabase extends Database
{
/**
@ -99,13 +103,16 @@ class StaticDatabase extends Database
}
/**
* @return ExtendedPDO
* @return ExtendedPDO The global, static connection
*/
public static function getGlobConnection()
{
return self::$staticConnection;
}
/**
* Perform a global commit for every nested transaction of the static connection
*/
public static function statCommit()
{
if (isset(self::$staticConnection)) {
@ -115,6 +122,9 @@ class StaticDatabase extends Database
}
}
/**
* Perform a global rollback for every nested transaction of the static connection
*/
public static function statRollback()
{
if (isset(self::$staticConnection)) {