Person.php 438 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace JMS\SerializerBundle\Tests\Fixtures;
  3. use JMS\SerializerBundle\Annotation\XmlAttribute;
  4. use JMS\SerializerBundle\Annotation\XmlValue;
  5. use JMS\SerializerBundle\Annotation\XmlRoot;
  6. use JMS\SerializerBundle\Annotation\Type;
  7. /**
  8. * @XmlRoot("child")
  9. */
  10. class Person
  11. {
  12. /**
  13. * @Type("string")
  14. * @XmlValue
  15. */
  16. public $name;
  17. /**
  18. * @Type("integer")
  19. * @XmlAttribute
  20. */
  21. public $age;
  22. }