4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Serializer\Encoder;
14 use Symfony\Component\Serializer\SerializerInterface;
15 use Symfony\Component\Serializer\SerializerAwareInterface;
18 * SerializerAware Encoder implementation.
20 * @author Jordi Boggiano <j.boggiano@seld.be>
22 abstract class SerializerAwareEncoder implements SerializerAwareInterface
24 protected $serializer;
29 public function setSerializer(SerializerInterface $serializer)
31 $this->serializer = $serializer;