mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Better type juggling
This commit is contained in:
parent
b6782198c0
commit
dbd216aa3b
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace phpOMS\DataStorage\Database;
|
||||
|
||||
use phpOMS\DataStorage\DataStorageConnectionInterface;
|
||||
use phpOMS\DataStorage\Database\Connection\ConnectionAbstract;
|
||||
use phpOMS\DataStorage\Database\Query\Builder;
|
||||
use phpOMS\DataStorage\DataMapperInterface;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
|
|
@ -37,7 +37,7 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
/**
|
||||
* Database connection.
|
||||
*
|
||||
* @var DataStorageConnectionInterface
|
||||
* @var ConnectionAbstract
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $db = null;
|
||||
|
|
@ -195,13 +195,13 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
/**
|
||||
* Set database connection.
|
||||
*
|
||||
* @param DataStorageConnectionInterface $con Database connection
|
||||
* @param ConnectionAbstract $con Database connection
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function setConnection(DataStorageConnectionInterface $con) : void
|
||||
public static function setConnection(ConnectionAbstract $con) : void
|
||||
{
|
||||
self::$db = $con;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user