1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation as Serializer; 8 9class ObjectWithAbsentXmlListNode 10{ 11 /** 12 * @Serializer\XmlList(inline=false, entry="comment", skipWhenEmpty=true) 13 * @Serializer\Type("array<string>") 14 */ 15 public $absent; 16 /** 17 * @Serializer\XmlList(inline=false, entry="comment", skipWhenEmpty=false) 18 * @Serializer\Type("array<string>") 19 */ 20 public $present; 21 22 /** 23 * @Serializer\XmlList(inline=false, entry="comment") 24 * @Serializer\Type("array<string>") 25 */ 26 public $skipDefault; 27 28 /** 29 * @Serializer\XmlList(inline=false, namespace="http://www.example.com") 30 * @Serializer\Type("array<string>") 31 */ 32 public $absentAndNs; 33} 34