EntityCLpCategory.php 2.0 KB

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