1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use Doctrine\Common\Collections\ArrayCollection;
8use JMS\Serializer\Annotation\Type;
9use JMS\Serializer\Annotation\XmlList;
10use JMS\Serializer\Annotation\XmlRoot;
11
12/**
13 * @XmlRoot("person_collection")
14 */
15class PersonCollection
16{
17    /**
18     * @Type("ArrayCollection<JMS\Serializer\Tests\Fixtures\Person>")
19     * @XmlList(entry = "person", inline = true)
20     */
21    public $persons;
22
23    /**
24     * @Type("string")
25     */
26    public $location;
27
28    public function __construct()
29    {
30        $this->persons = new ArrayCollection();
31    }
32}
33