ObjectWithObjectProperty.php 523 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\Type;
  4. class ObjectWithObjectProperty
  5. {
  6. /**
  7. * @Type("string")
  8. */
  9. private $foo;
  10. /**
  11. * @Type("JMS\Serializer\Tests\Fixtures\Author")
  12. */
  13. private $author;
  14. /**
  15. * @return string
  16. */
  17. public function getFoo()
  18. {
  19. return $this->foo;
  20. }
  21. /**
  22. * @return \JMS\Serializer\Tests\Fixtures\Author
  23. */
  24. public function getAuthor()
  25. {
  26. return $this->author;
  27. }
  28. }