vendor/symfony/src/Symfony/Component/Serializer/Encoder/SerializerAwareEncoder.php
equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 namespace Symfony\Component\Serializer\Encoder; |
|
4 |
|
5 use Symfony\Component\Serializer\SerializerInterface; |
|
6 use Symfony\Component\Serializer\SerializerAwareInterface; |
|
7 |
|
8 /* |
|
9 * This file is part of the Symfony framework. |
|
10 * |
|
11 * (c) Fabien Potencier <fabien@symfony.com> |
|
12 * |
|
13 * This source file is subject to the MIT license that is bundled |
|
14 * with this source code in the file LICENSE. |
|
15 */ |
|
16 |
|
17 /** |
|
18 * SerializerAware Encoder implementation |
|
19 * |
|
20 * @author Jordi Boggiano <j.boggiano@seld.be> |
|
21 */ |
|
22 abstract class SerializerAwareEncoder implements SerializerAwareInterface |
|
23 { |
|
24 protected $serializer; |
|
25 |
|
26 /** |
|
27 * {@inheritdoc} |
|
28 */ |
|
29 public function setSerializer(SerializerInterface $serializer) |
|
30 { |
|
31 $this->serializer = $serializer; |
|
32 } |
|
33 } |