ANode.php 547B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Tree\Fixture;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\MappedSuperclass
  7. */
  8. class ANode
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @Gedmo\TreeLeft
  18. * @ORM\Column(type="integer", nullable=true)
  19. */
  20. private $lft;
  21. /**
  22. * @Gedmo\TreeRight
  23. * @ORM\Column(type="integer", nullable=true)
  24. */
  25. private $rgt;
  26. public function getId()
  27. {
  28. return $this->id;
  29. }
  30. }