InlineParent.php 559 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace JMS\SerializerBundle\Tests\Fixtures;
  3. use JMS\SerializerBundle\Annotation as Serializer;
  4. use JMS\SerializerBundle\Annotation\Type;
  5. /** @Serializer\AccessorOrder("alphabetical") */
  6. class InlineParent
  7. {
  8. /**
  9. * @Type("string")
  10. */
  11. private $c = 'c';
  12. /**
  13. * @Type("string")
  14. */
  15. private $d = 'd';
  16. /**
  17. * @Type("JMS\SerializerBundle\Tests\Fixtures\InlineChild")
  18. * @Serializer\Inline
  19. */
  20. private $child;
  21. public function __construct()
  22. {
  23. $this->child = new InlineChild();
  24. }
  25. }