ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/vendor/amphp/serialization/src/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/vendor/amphp/serialization/src/PassthroughSerializer.php

<?php

namespace Amp\Serialization;

final class PassthroughSerializer implements Serializer
{
    public function serialize($data): string
    {
        if (!\is_string($data)) {
            throw new SerializationException('Serializer implementation only allows strings');
        }

        return $data;
    }

    public function unserialize(string $data): string
    {
        return $data;
    }
}

Zerion Mini Shell 1.0