1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation as JMS; 8 9/** 10 * @JMS\XmlRoot("tag") 11 * @JMS\XmlNamespace(uri="http://purl.org/dc/elements/1.1/", prefix="dc") 12 */ 13class Tag 14{ 15 /** 16 * @JMS\XmlElement(cdata=false) 17 * @JMS\Type("string") 18 */ 19 public $name; 20 21 public function __construct($name) 22 { 23 $this->name = $name; 24 } 25} 26