vendor/uvdesk/support-center-bundle/Entity/SolutionCategory.php line 13

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\SupportCenterBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * SolutionCategory
  6. * @ORM\Entity(repositoryClass="Webkul\UVDesk\SupportCenterBundle\Repository\SolutionCategory")
  7. * @ORM\HasLifecycleCallbacks
  8. * @ORM\Table(name="uv_solution_category")
  9. */
  10. class SolutionCategory
  11. {
  12. /**
  13. * @var int
  14. * @ORM\Id
  15. * @ORM\Column(type="integer")
  16. * @ORM\GeneratedValue
  17. */
  18. private $id;
  19. /**
  20. * @var string
  21. * @ORM\Column(type="string", length=100)
  22. */
  23. private $name;
  24. /**
  25. * @var string
  26. * @ORM\Column(type="string", length=100, nullable=true)
  27. */
  28. private $description;
  29. /**
  30. * @var int
  31. * @ORM\Column(type="integer", nullable=true, options={"default": 1})
  32. */
  33. private $sortOrder;
  34. /**
  35. * @var string
  36. * @ORM\Column(type="string", length=255, options={"default": "ascending"}, nullable=true)
  37. */
  38. private $sorting;
  39. /**
  40. * @var string
  41. * @ORM\Column(type="datetime")
  42. */
  43. private $dateAdded;
  44. /**
  45. * Get id.
  46. *
  47. * @return int
  48. */
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. /**
  54. * Set name.
  55. *
  56. * @param string $name
  57. *
  58. * @return SolutionCategory
  59. */
  60. public function setName($name)
  61. {
  62. $this->name = $name;
  63. return $this;
  64. }
  65. /**
  66. * Get name.
  67. *
  68. * @return string
  69. */
  70. public function getName()
  71. {
  72. return $this->name;
  73. }
  74. /**
  75. * Set description.
  76. *
  77. * @param string $description
  78. *
  79. * @return SolutionCategory
  80. */
  81. public function setDescription($description)
  82. {
  83. $this->description = $description;
  84. return $this;
  85. }
  86. /**
  87. * Get description.
  88. *
  89. * @return string
  90. */
  91. public function getDescription()
  92. {
  93. return $this->description;
  94. }
  95. /**
  96. * Set sortOrder.
  97. *
  98. * @param int $sortOrder
  99. *
  100. * @return SolutionCategory
  101. */
  102. public function setSortOrder($sortOrder)
  103. {
  104. $this->sortOrder = $sortOrder;
  105. return $this;
  106. }
  107. /**
  108. * Get sortOrder.
  109. *
  110. * @return int
  111. */
  112. public function getSortOrder()
  113. {
  114. return $this->sortOrder;
  115. }
  116. /**
  117. * Set sorting.
  118. *
  119. * @param string $sorting
  120. *
  121. * @return SolutionCategory
  122. */
  123. public function setSorting($sorting)
  124. {
  125. $this->sorting = $sorting;
  126. return $this;
  127. }
  128. /**
  129. * Get sorting.
  130. *
  131. * @return string
  132. */
  133. public function getSorting()
  134. {
  135. return $this->sorting;
  136. }
  137. /**
  138. * Set dateAdded.
  139. *
  140. * @param string $dateAdded
  141. *
  142. * @return SolutionCategory
  143. */
  144. public function setDateAdded($dateAdded)
  145. {
  146. $this->dateAdded = $dateAdded;
  147. return $this;
  148. }
  149. /**
  150. * Get dateAdded.
  151. *
  152. * @return string
  153. */
  154. public function getDateAdded()
  155. {
  156. return $this->dateAdded;
  157. }
  158. /**
  159. * @var int|null
  160. * @ORM\Column(type="integer", nullable=true, options={"default": 0})
  161. */
  162. private $status = 0;
  163. /**
  164. * @var \DateTime
  165. * @ORM\Column(type="datetime")
  166. */
  167. private $dateUpdated;
  168. /**
  169. * Set status.
  170. *
  171. * @param int|null $status
  172. *
  173. * @return SolutionCategory
  174. */
  175. public function setStatus($status = null)
  176. {
  177. $this->status = $status;
  178. return $this;
  179. }
  180. /**
  181. * Get status.
  182. *
  183. * @return int|null
  184. */
  185. public function getStatus()
  186. {
  187. return $this->status;
  188. }
  189. /**
  190. * Set dateUpdated.
  191. *
  192. * @param \DateTime $dateUpdated
  193. *
  194. * @return SolutionCategory
  195. */
  196. public function setDateUpdated($dateUpdated)
  197. {
  198. $this->dateUpdated = $dateUpdated;
  199. return $this;
  200. }
  201. /**
  202. * Get dateUpdated.
  203. *
  204. * @return \DateTime
  205. */
  206. public function getDateUpdated()
  207. {
  208. return $this->dateUpdated;
  209. }
  210. }