X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fserializer%2FTests%2FFixtures%2FNormalizableTraversableDummy.php;fp=vendor%2Fsymfony%2Fserializer%2FTests%2FFixtures%2FNormalizableTraversableDummy.php;h=3ac2fe364f9a636c52020cf47137325b3aaa3944;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/symfony/serializer/Tests/Fixtures/NormalizableTraversableDummy.php b/vendor/symfony/serializer/Tests/Fixtures/NormalizableTraversableDummy.php new file mode 100644 index 000000000..3ac2fe364 --- /dev/null +++ b/vendor/symfony/serializer/Tests/Fixtures/NormalizableTraversableDummy.php @@ -0,0 +1,36 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Serializer\Tests\Fixtures; + +use Symfony\Component\Serializer\Normalizer\NormalizableInterface; +use Symfony\Component\Serializer\Normalizer\DenormalizableInterface; +use Symfony\Component\Serializer\Normalizer\NormalizerInterface; +use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; + +class NormalizableTraversableDummy extends TraversableDummy implements NormalizableInterface, DenormalizableInterface +{ + public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array()) + { + return array( + 'foo' => 'normalizedFoo', + 'bar' => 'normalizedBar', + ); + } + + public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array()) + { + return array( + 'foo' => 'denormalizedFoo', + 'bar' => 'denormalizedBar', + ); + } +}