Notification.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Chamilo\PluginBundle\Entity\CourseHomeNotify;
  4. use Chamilo\CoreBundle\Entity\Course;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Class Notification.
  8. *
  9. * @package Chamilo\PluginBundle\Entity\CourseHomeNotify
  10. *
  11. * @ORM\Table(name="course_home_notify_notification")
  12. * @ORM\Entity()
  13. */
  14. class Notification
  15. {
  16. /**
  17. * @var int
  18. *
  19. * @ORM\Column(name="id", type="integer")
  20. * @ORM\Id()
  21. * @ORM\GeneratedValue()
  22. */
  23. private $id = 0;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(name="content", type="text")
  28. */
  29. private $content;
  30. /**
  31. * @var string
  32. *
  33. * @ORM\Column(name="expiration_link", type="string")
  34. */
  35. private $expirationLink;
  36. /**
  37. * @var string
  38. *
  39. * @ORM\Column(name="hash", type="string")
  40. */
  41. private $hash;
  42. /**
  43. * @var Course
  44. *
  45. * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Course")
  46. * @ORM\JoinColumn(name="c_id", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  47. */
  48. private $course;
  49. /**
  50. * @return int
  51. */
  52. public function getId()
  53. {
  54. return $this->id;
  55. }
  56. /**
  57. * @param int $id
  58. *
  59. * @return Notification
  60. */
  61. public function setId($id)
  62. {
  63. $this->id = $id;
  64. return $this;
  65. }
  66. /**
  67. * @return string
  68. */
  69. public function getContent()
  70. {
  71. return $this->content;
  72. }
  73. /**
  74. * @param string $content
  75. *
  76. * @return Notification
  77. */
  78. public function setContent($content)
  79. {
  80. $this->content = $content;
  81. return $this;
  82. }
  83. /**
  84. * @return string
  85. */
  86. public function getExpirationLink()
  87. {
  88. return $this->expirationLink;
  89. }
  90. /**
  91. * @param string $expirationLink
  92. *
  93. * @return Notification
  94. */
  95. public function setExpirationLink($expirationLink)
  96. {
  97. $this->expirationLink = $expirationLink;
  98. return $this;
  99. }
  100. /**
  101. * @return string
  102. */
  103. public function getHash()
  104. {
  105. return $this->hash;
  106. }
  107. /**
  108. * @param string $hash
  109. *
  110. * @return Notification
  111. */
  112. public function setHash($hash)
  113. {
  114. $this->hash = $hash;
  115. return $this;
  116. }
  117. /**
  118. * @return Course
  119. */
  120. public function getCourse()
  121. {
  122. return $this->course;
  123. }
  124. /**
  125. * @param Course $course
  126. *
  127. * @return Notification
  128. */
  129. public function setCourse($course)
  130. {
  131. $this->course = $course;
  132. return $this;
  133. }
  134. }