MaterializedPathCategory.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. namespace Mapping\Fixture\Yaml;
  3. class MaterializedPathCategory
  4. {
  5. private $id;
  6. private $title;
  7. private $path;
  8. private $level;
  9. private $children;
  10. private $parent;
  11. private $lockTime;
  12. /**
  13. * Get id
  14. *
  15. * @return integer $id
  16. */
  17. public function getId()
  18. {
  19. return $this->id;
  20. }
  21. /**
  22. * Set title
  23. *
  24. * @param string $title
  25. */
  26. public function setTitle($title)
  27. {
  28. $this->title = $title;
  29. }
  30. /**
  31. * Get title
  32. *
  33. * @return string $title
  34. */
  35. public function getTitle()
  36. {
  37. return $this->title;
  38. }
  39. /**
  40. * Add children
  41. *
  42. * @param Entity\Category $children
  43. */
  44. public function addChildren(Category $children)
  45. {
  46. $this->children[] = $children;
  47. }
  48. /**
  49. * Get children
  50. *
  51. * @return Doctrine\Common\Collections\Collection $children
  52. */
  53. public function getChildren()
  54. {
  55. return $this->children;
  56. }
  57. /**
  58. * Set parent
  59. *
  60. * @param Entity\Category $parent
  61. */
  62. public function setParent($parent)
  63. {
  64. $this->parent = $parent;
  65. }
  66. /**
  67. * Get parent
  68. *
  69. * @return Entity\Category $parent
  70. */
  71. public function getParent()
  72. {
  73. return $this->parent;
  74. }
  75. public function setLevel($level)
  76. {
  77. $this->level = $level;
  78. }
  79. public function getLevel()
  80. {
  81. return $this->level;
  82. }
  83. public function setPath($path)
  84. {
  85. $this->path = $path;
  86. }
  87. public function getPath()
  88. {
  89. return $this->path;
  90. }
  91. public function setLockTime($lockTime)
  92. {
  93. $this->lockTime = $lockTime;
  94. }
  95. public function getLockTime()
  96. {
  97. return $this->lockTime;
  98. }
  99. }