role.class.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. *
  6. * @license see /license.txt
  7. * @author autogenerated
  8. */
  9. class Role extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\RoleRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\RoleRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Role
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var integer $c_id
  25. */
  26. protected $c_id;
  27. /**
  28. * @var integer $role_id
  29. */
  30. protected $role_id;
  31. /**
  32. * @var string $role_name
  33. */
  34. protected $role_name;
  35. /**
  36. * @var text $role_comment
  37. */
  38. protected $role_comment;
  39. /**
  40. * @var boolean $default_role
  41. */
  42. protected $default_role;
  43. /**
  44. * Set c_id
  45. *
  46. * @param integer $value
  47. * @return Role
  48. */
  49. public function set_c_id($value)
  50. {
  51. $this->c_id = $value;
  52. return $this;
  53. }
  54. /**
  55. * Get c_id
  56. *
  57. * @return integer
  58. */
  59. public function get_c_id()
  60. {
  61. return $this->c_id;
  62. }
  63. /**
  64. * Set role_id
  65. *
  66. * @param integer $value
  67. * @return Role
  68. */
  69. public function set_role_id($value)
  70. {
  71. $this->role_id = $value;
  72. return $this;
  73. }
  74. /**
  75. * Get role_id
  76. *
  77. * @return integer
  78. */
  79. public function get_role_id()
  80. {
  81. return $this->role_id;
  82. }
  83. /**
  84. * Set role_name
  85. *
  86. * @param string $value
  87. * @return Role
  88. */
  89. public function set_role_name($value)
  90. {
  91. $this->role_name = $value;
  92. return $this;
  93. }
  94. /**
  95. * Get role_name
  96. *
  97. * @return string
  98. */
  99. public function get_role_name()
  100. {
  101. return $this->role_name;
  102. }
  103. /**
  104. * Set role_comment
  105. *
  106. * @param text $value
  107. * @return Role
  108. */
  109. public function set_role_comment($value)
  110. {
  111. $this->role_comment = $value;
  112. return $this;
  113. }
  114. /**
  115. * Get role_comment
  116. *
  117. * @return text
  118. */
  119. public function get_role_comment()
  120. {
  121. return $this->role_comment;
  122. }
  123. /**
  124. * Set default_role
  125. *
  126. * @param boolean $value
  127. * @return Role
  128. */
  129. public function set_default_role($value)
  130. {
  131. $this->default_role = $value;
  132. return $this;
  133. }
  134. /**
  135. * Get default_role
  136. *
  137. * @return boolean
  138. */
  139. public function get_default_role()
  140. {
  141. return $this->default_role;
  142. }
  143. }