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