MaxDepthDummy.php 729 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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\MaxDepth;
  12. /**
  13. * @author Kévin Dunglas <dunglas@gmail.com>
  14. */
  15. class MaxDepthDummy
  16. {
  17. /**
  18. * @MaxDepth(2)
  19. */
  20. public $foo;
  21. public $bar;
  22. /**
  23. * @var self
  24. */
  25. public $child;
  26. /**
  27. * @MaxDepth(3)
  28. */
  29. public function getBar()
  30. {
  31. return $this->bar;
  32. }
  33. public function getChild()
  34. {
  35. return $this->child;
  36. }
  37. }