ClosureCategory.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. namespace Mapping\Fixture\Yaml;
  3. class ClosureCategory
  4. {
  5. private $id;
  6. private $title;
  7. private $children;
  8. private $parent;
  9. /**
  10. * Get id
  11. *
  12. * @return integer $id
  13. */
  14. public function getId()
  15. {
  16. return $this->id;
  17. }
  18. /**
  19. * Set title
  20. *
  21. * @param string $title
  22. */
  23. public function setTitle($title)
  24. {
  25. $this->title = $title;
  26. }
  27. /**
  28. * Get title
  29. *
  30. * @return string $title
  31. */
  32. public function getTitle()
  33. {
  34. return $this->title;
  35. }
  36. /**
  37. * Add children
  38. *
  39. * @param Entity\Category $children
  40. */
  41. public function addChildren(Category $children)
  42. {
  43. $this->children[] = $children;
  44. }
  45. /**
  46. * Get children
  47. *
  48. * @return Doctrine\Common\Collections\Collection $children
  49. */
  50. public function getChildren()
  51. {
  52. return $this->children;
  53. }
  54. /**
  55. * Set parent
  56. *
  57. * @param Entity\Category $parent
  58. */
  59. public function setParent($parent)
  60. {
  61. $this->parent = $parent;
  62. }
  63. /**
  64. * Get parent
  65. *
  66. * @return Entity\Category $parent
  67. */
  68. public function getParent()
  69. {
  70. return $this->parent;
  71. }
  72. }