1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation as Serializer;
8
9/**
10 * @Serializer\XmlRoot("input")
11 */
12class Input
13{
14    /**
15     * @Serializer\XmlAttributeMap
16     */
17    private $attributes;
18
19    public function __construct($attributes = null)
20    {
21        $this->attributes = $attributes ?: [
22            'type' => 'text',
23            'name' => 'firstname',
24            'value' => 'Adrien',
25        ];
26    }
27}
28