Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / serializer / Tests / Fixtures / Dummy.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\DenormalizableInterface;
15 use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
16 use Symfony\Component\Serializer\Normalizer\NormalizableInterface;
17 use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
18
19 class Dummy implements NormalizableInterface, DenormalizableInterface
20 {
21     public $foo;
22     public $bar;
23     public $baz;
24     public $qux;
25
26     public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array())
27     {
28         return array(
29             'foo' => $this->foo,
30             'bar' => $this->bar,
31             'baz' => $this->baz,
32             'qux' => $this->qux,
33         );
34     }
35
36     public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array())
37     {
38         $this->foo = $data['foo'];
39         $this->bar = $data['bar'];
40         $this->baz = $data['baz'];
41         $this->qux = $data['qux'];
42     }
43 }