1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation as Serializer;
8
9class 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