1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation\Type; 8use JMS\Serializer\Annotation\XmlElement; 9use JMS\Serializer\Annotation\XmlNamespace; 10 11/** 12 * @XmlNamespace(uri="http://example.com/namespace-author") 13 */ 14class ObjectWithXmlNamespacesAndObjectPropertyAuthor 15{ 16 /** 17 * @Type("string") 18 * @XmlElement(namespace="http://example.com/namespace-modified"); 19 */ 20 private $author; 21 22 /** 23 * @Type("string") 24 * @XmlElement(namespace="http://example.com/namespace-author"); 25 */ 26 private $info = 'hidden-info'; 27 28 /** 29 * @Type("string") 30 * @XmlElement(namespace="http://example.com/namespace-property") 31 */ 32 private $name; 33 34 public function __construct($name, $author) 35 { 36 $this->name = $name; 37 $this->author = $author; 38 } 39} 40