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