for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ICanBoogie package.
*
* (c) Olivier Laviale <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ICanBoogie\Storage;
class JSONFileStorage extends FileStorage
{
/**
* Serialize the value using `json_encode()`.
* @inheritdoc
protected function serialize($value)
return json_encode($value);
}
* Unserialize the value using `json_decode()`.
protected function unserialize($value)
return json_decode($value, true);