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