1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation\Type;
8use JMS\Serializer\Annotation\XmlAttribute;
9use JMS\Serializer\Annotation\XmlRoot;
10use JMS\Serializer\Annotation\XmlValue;
11
12/**
13 * @XmlRoot("child")
14 */
15class 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