File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
tests/Symfony/Tests/Component/Serializer/Fixtures Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
namespace Symfony \Tests \Component \Serializer \Fixtures ;
4
4
5
5
use Symfony \Component \Serializer \Normalizer \NormalizableInterface ;
6
- use Symfony \Component \Serializer \SerializerInterface ;
6
+ use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
7
+ use Symfony \Component \Serializer \Normalizer \DenormalizerInterface ;
7
8
8
9
class NormalizableTraversableDummy extends TraversableDummy implements NormalizableInterface
9
10
{
10
- public function normalize (SerializerInterface $ serializer , $ format = null )
11
+ public function normalize (NormalizerInterface $ normalizer , $ format = null )
11
12
{
12
13
return array (
13
14
'foo ' => 'normalizedFoo ' ,
14
15
'bar ' => 'normalizedBar ' ,
15
16
);
16
17
}
17
18
18
- public function denormalize (SerializerInterface $ serializer , $ data , $ format = null )
19
+ public function denormalize (DenormalizerInterface $ denormalizer , $ data , $ format = null )
19
20
{
20
21
return array (
21
22
'foo ' => 'denormalizedFoo ' ,
Original file line number Diff line number Diff line change 3
3
namespace Symfony \Tests \Component \Serializer \Fixtures ;
4
4
5
5
use Symfony \Component \Serializer \Normalizer \NormalizableInterface ;
6
+ use Symfony \Component \Serializer \Normalizer \DenormalizableInterface ;
6
7
use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
7
8
use Symfony \Component \Serializer \Normalizer \DenormalizerInterface ;
8
9
9
- class ScalarDummy implements NormalizableInterface
10
+ class ScalarDummy implements NormalizableInterface, DenormalizableInterface
10
11
{
11
12
public $ foo ;
12
13
public $ xmlFoo ;
You can’t perform that action at this time.
0 commit comments