vendor/uvdesk/core-framework/Entity/SavedReplies.php line 160

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * EmailTemplatesCompany
  6. *
  7. * @ORM\Entity(repositoryClass="Webkul\UVDesk\CoreFrameworkBundle\Repository\SavedRepliesRepository")
  8. * @ORM\Table(name="uv_saved_replies")
  9. * @ORM\HasLifecycleCallbacks
  10. */
  11. class SavedReplies
  12. {
  13. /**
  14. * @var integer
  15. * @ORM\Id()
  16. * @ORM\Column(type="integer")
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. * @ORM\Column(name="name", type="string", length=255)
  23. */
  24. private $name;
  25. /**
  26. * @var string
  27. * @ORM\Column(name="subject", type="string", length=255, nullable=true)
  28. */
  29. private $subject;
  30. /**
  31. * @var string
  32. * @ORM\Column(type="text")
  33. */
  34. private $message;
  35. /**
  36. * Get id
  37. *
  38. * @return integer
  39. */
  40. public function getId()
  41. {
  42. return $this->id;
  43. }
  44. /**
  45. * Set name
  46. *
  47. * @param string $name
  48. * @return Savedreplies
  49. */
  50. public function setName($name)
  51. {
  52. $this->name = $name;
  53. return $this;
  54. }
  55. /**
  56. * Get name
  57. *
  58. * @return string
  59. */
  60. public function getName()
  61. {
  62. return $this->name;
  63. }
  64. /**
  65. * Set subject
  66. *
  67. * @param string $subject
  68. * @return Savedreplies
  69. */
  70. public function setSubject($subject)
  71. {
  72. $this->subject = $subject;
  73. return $this;
  74. }
  75. /**
  76. * Get subject
  77. *
  78. * @return string
  79. */
  80. public function getSubject()
  81. {
  82. return $this->subject;
  83. }
  84. /**
  85. * Set message
  86. *
  87. * @param string $message
  88. * @return Savedreplies
  89. */
  90. public function setMessage($message)
  91. {
  92. $this->message = $message;
  93. return $this;
  94. }
  95. /**
  96. * Get message
  97. *
  98. * @return string
  99. */
  100. public function getMessage()
  101. {
  102. return $this->message;
  103. }
  104. /**
  105. * @var integer
  106. * @ORM\Column(name="template_id", type="integer", nullable=true)
  107. */
  108. private $templateId;
  109. /**
  110. * Set templateId
  111. *
  112. * @param integer $templateId
  113. * @return Savedreplies
  114. */
  115. public function setTemplateId($templateId)
  116. {
  117. $this->templateId = $templateId;
  118. return $this;
  119. }
  120. /**
  121. * Get templateId
  122. *
  123. * @return integer
  124. */
  125. public function getTemplateId()
  126. {
  127. return $this->templateId;
  128. }
  129. /**
  130. * @var \Webkul\UserBundle\Entity\UserData
  131. * @ORM\ManyToOne(targetEntity="UserInstance", inversedBy="userSaveReplies")
  132. * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
  133. */
  134. private $user;
  135. /**
  136. * Set user
  137. *
  138. * @return Savedreplies
  139. */
  140. public function setUser(\Webkul\UVDesk\CoreFrameworkBundle\Entity\UserInstance $user = null)
  141. {
  142. $this->user = $user;
  143. return $this;
  144. }
  145. /**
  146. * Get user
  147. *
  148. * @return \Webkul\UserBundle\Entity\UserData
  149. */
  150. public function getUser()
  151. {
  152. return $this->user;
  153. }
  154. /**
  155. * @ORM\Column(type="boolean", options={"default": true}, nullable=true)
  156. */
  157. private $isPredefind;
  158. /**
  159. * Set isPredefind
  160. *
  161. * @param boolean $isPredefind
  162. * @return Savedreplies
  163. */
  164. public function setIsPredefind($isPredefind)
  165. {
  166. $this->isPredefind = $isPredefind;
  167. return $this;
  168. }
  169. /**
  170. * Get isPredefind
  171. *
  172. * @return boolean
  173. */
  174. public function getIsPredefind()
  175. {
  176. return $this->isPredefind;
  177. }
  178. /**
  179. * @var string
  180. *
  181. * @ORM\Column(name="message_inline", type="text", nullable=true)
  182. *
  183. */
  184. private $messageInline;
  185. /**
  186. * Set messageInline
  187. *
  188. * @param string $messageInline
  189. * @return Savedreplies
  190. */
  191. public function setMessageInline($messageInline)
  192. {
  193. $this->messageInline = $messageInline;
  194. return $this;
  195. }
  196. /**
  197. * Get messageInline
  198. *
  199. * @return string
  200. */
  201. public function getMessageInline()
  202. {
  203. return $this->messageInline;
  204. }
  205. /**
  206. * @var string
  207. * @ORM\Column(name="template_for", type="string", nullable=true, options={"default": null})
  208. */
  209. private $templateFor;
  210. /**
  211. * Set templateFor
  212. *
  213. * @param string $templateFor
  214. * @return Savedreplies
  215. */
  216. public function setTemplateFor($templateFor)
  217. {
  218. $this->templateFor = $templateFor;
  219. return $this;
  220. }
  221. /**
  222. * Get templateFor
  223. *
  224. * @return string
  225. */
  226. public function getTemplateFor()
  227. {
  228. return $this->templateFor;
  229. }
  230. /**
  231. * @var \Doctrine\Common\Collections\Collection
  232. *
  233. * @ORM\ManyToMany(targetEntity="SupportGroup")
  234. * @ORM\JoinTable(name="uv_saved_replies_groups",
  235. * joinColumns={@ORM\JoinColumn(name="savedReply_id", referencedColumnName="id", onDelete="CASCADE")},
  236. * inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id", onDelete="CASCADE")},
  237. * )
  238. *
  239. */
  240. private $groups;
  241. /**
  242. * Constructor
  243. */
  244. public function __construct()
  245. {
  246. $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
  247. }
  248. /**
  249. * Add groups
  250. *
  251. * @return Savedreplies
  252. */
  253. public function addSupportGroup(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $groups)
  254. {
  255. $this->groups[] = $groups;
  256. return $this;
  257. }
  258. /**
  259. * Remove groups
  260. *
  261. * @param \Webkul\UserBundle\Entity\UserGroup $groups
  262. */
  263. public function removeSupportGroups(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $groups)
  264. {
  265. $this->groups->removeElement($groups);
  266. }
  267. /**
  268. * Get groups
  269. *
  270. * @return \Doctrine\Common\Collections\Collection
  271. */
  272. public function getSupportGroups()
  273. {
  274. return $this->groups;
  275. }
  276. /**
  277. * @var \Doctrine\Common\Collections\Collection
  278. * @ORM\ManyToMany(targetEntity="SupportTeam")
  279. * @ORM\JoinTable(name="uv_saved_replies_teams",
  280. * joinColumns={@ORM\JoinColumn(name="savedReply_id", referencedColumnName="id", onDelete="CASCADE")},
  281. * inverseJoinColumns={@ORM\JoinColumn(name="subgroup_id", referencedColumnName="id", onDelete="CASCADE")},
  282. * )
  283. */
  284. private $teams;
  285. /**
  286. * Add teams
  287. *
  288. * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $teams
  289. * @return EmailTemplatesCompany
  290. */
  291. public function addSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $teams)
  292. {
  293. $this->teams[] = $teams;
  294. return $this;
  295. }
  296. /**
  297. * Remove teams
  298. *
  299. * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $teams
  300. */
  301. public function removeSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $teams)
  302. {
  303. $this->teams->removeElement($teams);
  304. }
  305. /**
  306. * Get teams
  307. *
  308. * @return \Doctrine\Common\Collections\Collection
  309. */
  310. public function getSupportTeams()
  311. {
  312. return $this->teams;
  313. }
  314. }