phpOMS/tests/DataStorage/Cache/Connection/FileCacheJsonSerializable.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);
}
}