1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation\XmlKeyValuePairs; 8 9class ObjectWithXmlKeyValuePairs 10{ 11 /** 12 * @var array 13 * @XmlKeyValuePairs 14 */ 15 private $array = [ 16 'key-one' => 'foo', 17 'key-two' => 1, 18 'nested-array' => ['bar' => 'foo'], 19 'without-keys' => [ 20 1, 21 'test', 22 ], 23 'mixed' => [ 24 'test', 25 'foo' => 'bar', 26 '1_foo' => 'bar', 27 ], 28 1 => 'foo', 29 ]; 30} 31