mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 05:58:42 +00:00
Fix types
This commit is contained in:
parent
a3fd37fd84
commit
b6782198c0
|
|
@ -50,6 +50,14 @@ class ApplicationAbstract
|
||||||
*/
|
*/
|
||||||
protected $appName = '';
|
protected $appName = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Organization id.
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected $orgId = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database object.
|
* Database object.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpOMS\DataStorage\Database;
|
namespace phpOMS\DataStorage\Database;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\Connection\ConnectionAbstract;
|
use phpOMS\DataStorage\DataStorageConnectionInterface;
|
||||||
use phpOMS\DataStorage\Database\Query\Builder;
|
use phpOMS\DataStorage\Database\Query\Builder;
|
||||||
use phpOMS\DataStorage\DataMapperInterface;
|
use phpOMS\DataStorage\DataMapperInterface;
|
||||||
use phpOMS\Message\RequestAbstract;
|
use phpOMS\Message\RequestAbstract;
|
||||||
|
|
@ -37,7 +37,7 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
/**
|
/**
|
||||||
* Database connection.
|
* Database connection.
|
||||||
*
|
*
|
||||||
* @var ConnectionAbstract
|
* @var DataStorageConnectionInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $db = null;
|
protected static $db = null;
|
||||||
|
|
@ -195,13 +195,13 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
/**
|
/**
|
||||||
* Set database connection.
|
* Set database connection.
|
||||||
*
|
*
|
||||||
* @param ConnectionAbstract $con Database connection
|
* @param DataStorageConnectionInterface $con Database connection
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function setConnection(ConnectionAbstract $con) : void
|
public static function setConnection(DataStorageConnectionInterface $con) : void
|
||||||
{
|
{
|
||||||
self::$db = $con;
|
self::$db = $con;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user