Author.php 395 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\SerializedName;
  4. use JMS\Serializer\Annotation\Type;
  5. class Author
  6. {
  7. /**
  8. * @Type("string")
  9. * @SerializedName("full_name")
  10. */
  11. private $name;
  12. public function __construct($name)
  13. {
  14. $this->name = $name;
  15. }
  16. public function getName()
  17. {
  18. return $this->name;
  19. }
  20. }