1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures\DoctrinePHPCR;
6
7use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
8use JMS\Serializer\Annotation\SerializedName;
9
10/** @PHPCRODM\Document */
11class Author
12{
13    /**
14     * @PHPCRODM\Id()
15     */
16    protected $id;
17
18    /**
19     * @PHPCRODM\Field(type="string")
20     * @SerializedName("full_name")
21     */
22    private $name;
23
24    public function __construct($name)
25    {
26        $this->name = $name;
27    }
28
29    public function getName()
30    {
31        return $this->name;
32    }
33}
34