1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation as Serializer;
8use JMS\Serializer\Annotation\Type;
9
10/** @Serializer\AccessorOrder("alphabetical") */
11class InlineParent
12{
13    /**
14     * @Type("string")
15     */
16    private $c = 'c';
17
18    /**
19     * @Type("string")
20     */
21    private $d = 'd';
22
23    /**
24     * @Serializer\Inline
25     *
26     * @Type("JMS\Serializer\Tests\Fixtures\InlineChild")
27     */
28    private $child;
29
30    public function __construct($child = null)
31    {
32        $this->child = $child ?: new InlineChild();
33    }
34}
35