12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- namespace JMS\Serializer\Tests\Fixtures;
- use JMS\Serializer\Annotation\SerializedName;
- use JMS\Serializer\Annotation\Type;
- use JMS\Serializer\Annotation\XmlElement;
- use JMS\Serializer\Annotation\XmlList;
- use JMS\Serializer\Annotation\XmlMap;
- use JMS\Serializer\Annotation\XmlNamespace;
- use JMS\Serializer\Annotation\XmlRoot;
- /**
- * @XmlRoot("ObjectWithNamespacesAndList", namespace="http://example.com/namespace")
- * @XmlNamespace(uri="http://example.com/namespace")
- * @XmlNamespace(uri="http://example.com/namespace2", prefix="x")
- */
- class ObjectWithNamespacesAndList
- {
- /**
- * @Type("string")
- * @SerializedName("name")
- * @XmlElement(namespace="http://example.com/namespace")
- */
- public $name;
- /**
- * @Type("string")
- * @SerializedName("name")
- * @XmlElement(namespace="http://example.com/namespace2")
- */
- public $nameAlternativeB;
- /**
- * @Type("array<string>")
- * @SerializedName("phones")
- * @XmlElement(namespace="http://example.com/namespace2")
- * @XmlList(inline = false, entry = "phone", namespace="http://example.com/namespace2")
- */
- public $phones;
- /**
- * @Type("array<string,string>")
- * @SerializedName("addresses")
- * @XmlElement(namespace="http://example.com/namespace2")
- * @XmlMap(inline = false, entry = "address", keyAttribute = "id", namespace="http://example.com/namespace2")
- */
- public $addresses;
- /**
- * @Type("array<string>")
- * @SerializedName("phones")
- * @XmlList(inline = true, entry = "phone", namespace="http://example.com/namespace")
- */
- public $phonesAlternativeB;
- /**
- * @Type("array<string,string>")
- * @SerializedName("addresses")
- * @XmlMap(inline = true, entry = "address", keyAttribute = "id", namespace="http://example.com/namespace")
- */
- public $addressesAlternativeB;
- /**
- * @Type("array<string>")
- * @SerializedName("phones")
- * @XmlList(inline = true, entry = "phone", namespace="http://example.com/namespace2")
- */
- public $phonesAlternativeC;
- /**
- * @Type("array<string,string>")
- * @SerializedName("addresses")
- * @XmlMap(inline = true, entry = "address", keyAttribute = "id", namespace="http://example.com/namespace2")
- */
- public $addressesAlternativeC;
- /**
- * @Type("array<string>")
- * @SerializedName("phones")
- * @XmlList(inline = false, entry = "phone")
- */
- public $phonesAlternativeD;
- /**
- * @Type("array<string,string>")
- * @SerializedName("addresses")
- * @XmlMap(inline = false, entry = "address", keyAttribute = "id")
- */
- public $addressesAlternativeD;
- }
|