ObjectWithXmlNamespacesAndObjectPropertyAuthor.php 824 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\Type;
  4. use JMS\Serializer\Annotation\XmlElement;
  5. use JMS\Serializer\Annotation\XmlNamespace;
  6. /**
  7. * @XmlNamespace(uri="http://example.com/namespace-author")
  8. */
  9. class ObjectWithXmlNamespacesAndObjectPropertyAuthor
  10. {
  11. /**
  12. * @Type("string")
  13. * @XmlElement(namespace="http://example.com/namespace-modified");
  14. */
  15. private $author;
  16. /**
  17. * @Type("string")
  18. * @XmlElement(namespace="http://example.com/namespace-author");
  19. */
  20. private $info = "hidden-info";
  21. /**
  22. * @Type("string")
  23. * @XmlElement(namespace="http://example.com/namespace-property")
  24. */
  25. private $name;
  26. public function __construct($name, $author)
  27. {
  28. $this->name = $name;
  29. $this->author = $author;
  30. }
  31. }