1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation as Serializer;
8
9class ObjectWithEmptyArrayAndHash
10{
11    /**
12     * @Serializer\Type("array<string,string>")
13     * @Serializer\SkipWhenEmpty()
14     */
15    private $hash = [];
16    /**
17     * @Serializer\Type("array<string>")
18     * @Serializer\SkipWhenEmpty()
19     */
20    private $array = [];
21
22    /**
23     * @Serializer\SkipWhenEmpty()
24     */
25    private $object = [];
26
27    public function __construct()
28    {
29        $this->object = new InlineChildEmpty();
30    }
31}
32