1 <?php
2 
3 declare(strict_types=1);
4 
5 namespace JMS\Serializer\Tests\Fixtures;
6 
7 class ParentDoNotSkipWithEmptyChild
8 {
9     private $c = 'c';
10 
11     private $d = 'd';
12 
13     /**
14      * @var InlineChild
15      */
16     private $child;
17 
18     public function __construct($child = null)
19     {
20         $this->child = $child ?: new InlineChild();
21     }
22 }
23