mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
103 lines
1.6 KiB
PHP
103 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package phpOMS\DataStorage\Session
|
|
* @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\Session;
|
|
|
|
/**
|
|
* Console session class.
|
|
*
|
|
* @package phpOMS\DataStorage\Session
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
class ConsoleSession implements SessionInterface
|
|
{
|
|
|
|
/**
|
|
* Session ID.
|
|
*
|
|
* @var string|int|null
|
|
* @since 1.0.0
|
|
*/
|
|
private $sid = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param string|int|null $sid Session id
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct($sid = null)
|
|
{
|
|
if ($sid !== null) {
|
|
$this->sid = $sid;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function get($key)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function set($key, $value, bool $overwrite = true) : bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function remove($key) : bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getSID()
|
|
{
|
|
return $this->sid;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setSID($sid) : void
|
|
{
|
|
$this->sid = $sid;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function save() : void
|
|
{
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function lock() : void
|
|
{
|
|
}
|
|
}
|