1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation as Serializer;
8
9class ObjectWithIterator
10{
11    /**
12     * @Serializer\Type("ArrayIterator<string,string>")
13     * @Serializer\XmlKeyValuePairs
14     *
15     * @var \ArrayIterator
16     */
17    public $iterator;
18
19    public function __construct(\ArrayIterator $iterator)
20    {
21        $this->iterator = $iterator;
22    }
23}
24