for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Koded package.
*
* (c) Mihail Binev <[email protected]>
* Please view the LICENSE distributed with this source code
* for the full copyright and license information.
*/
namespace Koded\Stdlib\Serializer;
use Koded\Stdlib\Serializer;
use function serialize;
use function unserialize;
class PhpSerializer implements Serializer
{
public function serialize(mixed $value): ?string
return serialize($value);
}
public function unserialize(string $value): mixed
return unserialize($value);
public function type(): string
return Serializer::PHP;