equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 namespace Symfony\Component\Serializer\Encoder; |
|
4 |
|
5 use Symfony\Component\Serializer\SerializerInterface; |
|
6 |
|
7 /* |
|
8 * This file is part of the Symfony framework. |
|
9 * |
|
10 * (c) Fabien Potencier <fabien@symfony.com> |
|
11 * |
|
12 * This source file is subject to the MIT license that is bundled |
|
13 * with this source code in the file LICENSE. |
|
14 */ |
|
15 |
|
16 /** |
|
17 * Defines the interface of encoders |
|
18 * |
|
19 * @author Jordi Boggiano <j.boggiano@seld.be> |
|
20 */ |
|
21 interface EncoderInterface |
|
22 { |
|
23 /** |
|
24 * Encodes data into a string |
|
25 * |
|
26 * @param mixed $data data to encode |
|
27 * @param string $format format to encode to |
|
28 * @return string |
|
29 */ |
|
30 function encode($data, $format); |
|
31 } |