GroupsObject.php 653 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\Groups;
  4. use JMS\Serializer\Annotation\Type;
  5. /** blablub */
  6. class GroupsObject
  7. {
  8. /**
  9. * @Groups({"foo"})
  10. * @Type("string")
  11. */
  12. private $foo;
  13. /**
  14. * @Groups({"foo","bar"})
  15. * @Type("string")
  16. */
  17. private $foobar;
  18. /**
  19. * @Groups({"bar", "Default"})
  20. * @Type("string")
  21. */
  22. private $bar;
  23. /**
  24. * @Type("string")
  25. */
  26. private $none;
  27. public function __construct()
  28. {
  29. $this->foo = "foo";
  30. $this->bar = "bar";
  31. $this->foobar = "foobar";
  32. $this->none = "none";
  33. }
  34. }