ObjectWithAbsentXmlListNode.php 746 B

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