1 <?php 2 3 declare(strict_types=1); 4 5 namespace JMS\Serializer\Tests\Fixtures; 6 7 use JMS\Serializer\Annotation\Type; 8 use JMS\Serializer\Annotation\XmlAttribute; 9 use JMS\Serializer\Annotation\XmlRoot; 10 use JMS\Serializer\Annotation\XmlValue; 11 12 /** 13 * @XmlRoot("child") 14 */ 15 class Person 16 { 17 /** 18 * @Type("string") 19 * @XmlValue(cdata=false) 20 */ 21 public $name; 22 23 /** 24 * @Type("int") 25 * @XmlAttribute 26 */ 27 public $age; 28 } 29