1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation\Type;
8
9class Comment
10{
11    /**
12     * @Type("JMS\Serializer\Tests\Fixtures\Author")
13     */
14    private $author;
15
16    /**
17     * @Type("string")
18     */
19    private $text;
20
21    public function __construct(?Author $author = null, $text)
22    {
23        $this->author = $author;
24        $this->text = $text;
25    }
26
27    public function getAuthor()
28    {
29        return $this->author;
30    }
31}
32