SimpleClassObject.php 800 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\Type;
  4. use JMS\Serializer\Annotation\XmlAttribute;
  5. use JMS\Serializer\Annotation\XmlElement;
  6. use JMS\Serializer\Annotation\XmlNamespace;
  7. /**
  8. * @XmlNamespace(prefix="old_foo", uri="http://old.foo.example.org");
  9. * @XmlNamespace(prefix="foo", uri="http://foo.example.org");
  10. * @XmlNamespace(prefix="new_foo", uri="http://new.foo.example.org");
  11. */
  12. class SimpleClassObject
  13. {
  14. /**
  15. * @Type("string")
  16. * @XmlAttribute(namespace="http://old.foo.example.org")
  17. */
  18. public $foo;
  19. /**
  20. * @Type("string")
  21. * @XmlElement(namespace="http://foo.example.org")
  22. */
  23. public $bar;
  24. /**
  25. * @Type("string")
  26. * @XmlElement(namespace="http://new.foo.example.org")
  27. */
  28. public $moo;
  29. }