InlineChildWithGroups.php 350 B

123456789101112131415161718192021
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation as Serializer;
  4. use JMS\Serializer\Annotation\Type;
  5. class InlineChildWithGroups
  6. {
  7. /**
  8. * @Type("string")
  9. * @Serializer\Groups({"a"})
  10. */
  11. public $a = 'a';
  12. /**
  13. * @Type("string")
  14. * @Serializer\Groups({"b"})
  15. */
  16. public $b = 'b';
  17. }