12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace JMS\Serializer\Tests\Fixtures;
- use JMS\Serializer\Annotation\Type;
- use JMS\Serializer\Annotation\XmlElement;
- use JMS\Serializer\Annotation\XmlNamespace;
- /**
- * @XmlNamespace(uri="http://example.com/namespace-author")
- */
- class ObjectWithXmlNamespacesAndObjectPropertyAuthor
- {
- /**
- * @Type("string")
- * @XmlElement(namespace="http://example.com/namespace-modified");
- */
- private $author;
- /**
- * @Type("string")
- * @XmlElement(namespace="http://example.com/namespace-author");
- */
- private $info = "hidden-info";
- /**
- * @Type("string")
- * @XmlElement(namespace="http://example.com/namespace-property")
- */
- private $name;
- public function __construct($name, $author)
- {
- $this->name = $name;
- $this->author = $author;
- }
- }
|