mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
34 lines
574 B
PHP
34 lines
574 B
PHP
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.0
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\DataStorage\Cache\Connection;
|
|
|
|
class FileCacheJsonSerializable implements \JsonSerializable
|
|
{
|
|
public $val = 'asdf';
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function jsonSerialize() : mixed
|
|
{
|
|
return 'abc';
|
|
}
|
|
|
|
public function unserialize($val) : void
|
|
{
|
|
$this->val = \json_decode($val, true);
|
|
}
|
|
}
|