SiblingHolder.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /**
  12. * @author Kévin Dunglas <dunglas@gmail.com>
  13. */
  14. class SiblingHolder
  15. {
  16. private $sibling0;
  17. private $sibling1;
  18. private $sibling2;
  19. public function __construct()
  20. {
  21. $sibling = new Sibling();
  22. $this->sibling0 = $sibling;
  23. $this->sibling1 = $sibling;
  24. $this->sibling2 = $sibling;
  25. }
  26. public function getSibling0()
  27. {
  28. return $this->sibling0;
  29. }
  30. public function getSibling1()
  31. {
  32. return $this->sibling1;
  33. }
  34. public function getSibling2()
  35. {
  36. return $this->sibling2;
  37. }
  38. }
  39. /**
  40. * @author Kévin Dunglas <dunglas@gmail.com>
  41. */
  42. class Sibling
  43. {
  44. public function getCoopTilleuls()
  45. {
  46. return 'Les-Tilleuls.coop';
  47. }
  48. }