1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation as Serializer;
8use JMS\Serializer\Annotation\VirtualProperty;
9
10class ObjectWithVirtualPropertiesAndDuplicatePropName
11{
12    protected $id;
13    protected $name;
14
15    /**
16     * @VirtualProperty(name="foo")
17     */
18    public function getId()
19    {
20        return 'value';
21    }
22
23    /**
24     * @Serializer\SerializedName("mood")
25     *
26     * @VirtualProperty(name="bar")
27     */
28    public function getName()
29    {
30        return 'value';
31    }
32}
33