GroupDummyParent.php 906 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Serializer\Tests\Fixtures;
  11. use Symfony\Component\Serializer\Annotation\Groups;
  12. /**
  13. * @author Kévin Dunglas <dunglas@gmail.com>
  14. */
  15. class GroupDummyParent
  16. {
  17. /**
  18. * @Groups({"a"})
  19. */
  20. private $kevin;
  21. private $coopTilleuls;
  22. public function setKevin($kevin)
  23. {
  24. $this->kevin = $kevin;
  25. }
  26. public function getKevin()
  27. {
  28. return $this->kevin;
  29. }
  30. public function setCoopTilleuls($coopTilleuls)
  31. {
  32. $this->coopTilleuls = $coopTilleuls;
  33. }
  34. /**
  35. * @Groups({"a", "b"})
  36. */
  37. public function getCoopTilleuls()
  38. {
  39. return $this->coopTilleuls;
  40. }
  41. }