Input.php 451 B

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