Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / serializer / Tests / Fixtures / AbstractNormalizerDummy.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Serializer\Tests\Fixtures;
13
14 use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
15
16 /**
17  * Provides a dummy Normalizer which extends the AbstractNormalizer.
18  *
19  * @author Konstantin S. M. Möllers <ksm.moellers@gmail.com>
20  */
21 class AbstractNormalizerDummy extends AbstractNormalizer
22 {
23     /**
24      * {@inheritdoc}
25      */
26     public function getAllowedAttributes($classOrObject, array $context, $attributesAsString = false)
27     {
28         return parent::getAllowedAttributes($classOrObject, $context, $attributesAsString);
29     }
30
31     /**
32      * {@inheritdoc}
33      */
34     public function normalize($object, $format = null, array $context = array())
35     {
36     }
37
38     /**
39      * {@inheritdoc}
40      */
41     public function supportsNormalization($data, $format = null)
42     {
43         return true;
44     }
45
46     /**
47      * {@inheritdoc}
48      */
49     public function denormalize($data, $class, $format = null, array $context = array())
50     {
51     }
52
53     /**
54      * {@inheritdoc}
55      */
56     public function supportsDenormalization($data, $type, $format = null)
57     {
58         return true;
59     }
60 }