1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation as Serializer;
8
9class ObjectWithEmptyNullableAndEmptyArrays
10{
11    /**
12     * @Serializer\XmlList(inline = true, entry = "comment")
13     * @Serializer\Type("array")
14     */
15    public $null_inline = null;
16
17    /**
18     * @Serializer\XmlList(inline = true, entry = "comment")
19     * @Serializer\Type("array")
20     */
21    public $empty_inline = [];
22
23    /**
24     * @Serializer\XmlList(inline = true, entry = "comment")
25     * @Serializer\Type("array")
26     */
27    public $not_empty_inline = ['not_empty_inline'];
28
29    /**
30     * @Serializer\XmlList(inline = false, entry = "comment")
31     * @Serializer\Type("array")
32     */
33    public $null_not_inline = null;
34
35    /**
36     * @Serializer\XmlList(inline = false, entry = "comment")
37     * @Serializer\Type("array")
38     */
39    public $empty_not_inline = [];
40
41    /**
42     * @Serializer\XmlList(inline = false, entry = "comment", skipWhenEmpty=false)
43     * @Serializer\Type("array")
44     */
45    public $not_empty_not_inline = ['not_empty_not_inline'];
46
47    /**
48     * @Serializer\XmlList(inline = false, entry = "comment", skipWhenEmpty=false)
49     * @Serializer\Type("array")
50     */
51    public $null_not_inline_skip = null;
52
53    /**
54     * @Serializer\XmlList(inline = false, entry = "comment", skipWhenEmpty=false)
55     * @Serializer\Type("array")
56     */
57    public $empty_not_inline_skip = [];
58
59    /**
60     * @Serializer\XmlList(inline = false, entry = "comment", skipWhenEmpty=false)
61     * @Serializer\Type("array")
62     */
63    public $not_empty_not_inline_skip = ['not_empty_not_inline_skip'];
64}
65