CLpCategory.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. namespace Entity;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * CLpCategory
  7. *
  8. * @ORM\Table(name="c_lp_category")
  9. * @ORM\Entity(repositoryClass="Gedmo\Sortable\Entity\Repository\SortableRepository")
  10. */
  11. class CLpCategory
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="id", type="integer")
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $id;
  21. /**
  22. * @Gedmo\SortableGroup
  23. * @ORM\Column(name="c_id", type="integer")
  24. */
  25. private $cId;
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(name="name")
  30. */
  31. private $name;
  32. /**
  33. * @Gedmo\SortablePosition
  34. * @ORM\Column(name="position", type="integer")
  35. */
  36. private $position;
  37. /**
  38. * Set cId
  39. *
  40. * @param integer $cId
  41. * @return CLpCategory
  42. */
  43. public function setCId($cId)
  44. {
  45. $this->cId = $cId;
  46. return $this;
  47. }
  48. /**
  49. * Get cId
  50. *
  51. * @return integer
  52. */
  53. public function getCId()
  54. {
  55. return $this->cId;
  56. }
  57. /**
  58. * Set id
  59. *
  60. * @param integer $id
  61. * @return CLpCategory
  62. */
  63. public function setId($id)
  64. {
  65. $this->id = $id;
  66. return $this;
  67. }
  68. /**
  69. * Get blogId
  70. *
  71. * @return integer
  72. */
  73. public function getId()
  74. {
  75. return $this->id;
  76. }
  77. /**
  78. * Set category name
  79. *
  80. * @param string $blogName
  81. *
  82. * @return CLpCategory
  83. */
  84. public function setName($name)
  85. {
  86. $this->name = $name;
  87. return $this;
  88. }
  89. /**
  90. * Get category name
  91. *
  92. * @return string
  93. */
  94. public function getName()
  95. {
  96. return $this->name;
  97. }
  98. public function setPosition($position)
  99. {
  100. $this->position = $position;
  101. }
  102. public function getPosition()
  103. {
  104. return $this->position;
  105. }
  106. }