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