mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
70 lines
1.3 KiB
PHP
70 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @package phpOMS\DataStorage
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\DataStorage;
|
|
|
|
/**
|
|
* Database connection interface.
|
|
*
|
|
* @package phpOMS\DataStorage
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
interface DataStorageConnectionInterface
|
|
{
|
|
|
|
/**
|
|
* Connect to datastorage.
|
|
*
|
|
* Overwrites current connection if existing
|
|
*
|
|
* @param string[] $dbdata the basic datastorage information for establishing a connection
|
|
*
|
|
* @return void
|
|
*
|
|
* @todo make private
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function connect(array $dbdata); /* : void */
|
|
|
|
/**
|
|
* Get the datastorage type.
|
|
*
|
|
* @return string
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getType() : string;
|
|
|
|
/**
|
|
* Get the datastorage status.
|
|
*
|
|
* @return int
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getStatus() : int;
|
|
|
|
/**
|
|
* Close datastorage connection.
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function close(); /* : void */
|
|
}
|