Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/symfony/maker-bundle/src/Resources/skeleton/serializer/
Upload File :
Current File : //opt/nginxhttpd_/vendor/symfony/maker-bundle/src/Resources/skeleton/serializer/Encoder.tpl.php

<?= "<?php\n" ?>

namespace <?= $namespace; ?>;

use Symfony\Component\Serializer\Encoder\DecoderInterface;
use Symfony\Component\Serializer\Encoder\EncoderInterface;

class <?= $class_name ?> implements EncoderInterface, DecoderInterface
{
    public const FORMAT = '<?= $format ?>';

    public function encode($data, $format, array $context = [])
    {
        // TODO: return your encoded data
        return '';
    }

    public function supportsEncoding($format): bool
    {
        return self::FORMAT === $format;
    }

    public function decode($data, $format, array $context = [])
    {
        // TODO: return your decoded data
        return '';
    }

    public function supportsDecoding($format): bool
    {
        return self::FORMAT === $format;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists