ObjectWithNamespacesAndNestedList.php 795 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation as Serializer;
  4. use JMS\Serializer\Annotation\SerializedName;
  5. use JMS\Serializer\Annotation\Type;
  6. use JMS\Serializer\Annotation\XmlElement;
  7. use JMS\Serializer\Annotation\XmlList;
  8. use JMS\Serializer\Annotation\XmlMap;
  9. use JMS\Serializer\Annotation\XmlNamespace;
  10. use JMS\Serializer\Annotation\XmlRoot;
  11. /**
  12. * @XmlRoot("ObjectWithNamespacesAndNestedList", namespace="http://example.com/namespace")
  13. * @XmlNamespace(uri="http://example.com/namespace")
  14. * @XmlNamespace(uri="http://example.com/namespace2", prefix="x")
  15. */
  16. class ObjectWithNamespacesAndNestedList
  17. {
  18. /**
  19. * @Type("JMS\Serializer\Tests\Fixtures\PersonCollection")
  20. * @SerializedName("person_collection")
  21. */
  22. public $personCollection;
  23. }