course_category.class.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 CourseCategory extends \Entity
  10. {
  11. /**
  12. * @return \Entity\Repository\CourseCategoryRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\CourseCategoryRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\CourseCategory
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var integer $id
  25. */
  26. protected $id;
  27. /**
  28. * @var string $name
  29. */
  30. protected $name;
  31. /**
  32. * @var string $code
  33. */
  34. protected $code;
  35. /**
  36. * @var string $parent_id
  37. */
  38. protected $parent_id;
  39. /**
  40. * @var integer $tree_pos
  41. */
  42. protected $tree_pos;
  43. /**
  44. * @var smallint $children_count
  45. */
  46. protected $children_count;
  47. /**
  48. * @var string $auth_course_child
  49. */
  50. protected $auth_course_child;
  51. /**
  52. * @var string $auth_cat_child
  53. */
  54. protected $auth_cat_child;
  55. /**
  56. * Get id
  57. *
  58. * @return integer
  59. */
  60. public function get_id()
  61. {
  62. return $this->id;
  63. }
  64. /**
  65. * Set name
  66. *
  67. * @param string $value
  68. * @return CourseCategory
  69. */
  70. public function set_name($value)
  71. {
  72. $this->name = $value;
  73. return $this;
  74. }
  75. /**
  76. * Get name
  77. *
  78. * @return string
  79. */
  80. public function get_name()
  81. {
  82. return $this->name;
  83. }
  84. /**
  85. * Set code
  86. *
  87. * @param string $value
  88. * @return CourseCategory
  89. */
  90. public function set_code($value)
  91. {
  92. $this->code = $value;
  93. return $this;
  94. }
  95. /**
  96. * Get code
  97. *
  98. * @return string
  99. */
  100. public function get_code()
  101. {
  102. return $this->code;
  103. }
  104. /**
  105. * Set parent_id
  106. *
  107. * @param string $value
  108. * @return CourseCategory
  109. */
  110. public function set_parent_id($value)
  111. {
  112. $this->parent_id = $value;
  113. return $this;
  114. }
  115. /**
  116. * Get parent_id
  117. *
  118. * @return string
  119. */
  120. public function get_parent_id()
  121. {
  122. return $this->parent_id;
  123. }
  124. /**
  125. * Set tree_pos
  126. *
  127. * @param integer $value
  128. * @return CourseCategory
  129. */
  130. public function set_tree_pos($value)
  131. {
  132. $this->tree_pos = $value;
  133. return $this;
  134. }
  135. /**
  136. * Get tree_pos
  137. *
  138. * @return integer
  139. */
  140. public function get_tree_pos()
  141. {
  142. return $this->tree_pos;
  143. }
  144. /**
  145. * Set children_count
  146. *
  147. * @param smallint $value
  148. * @return CourseCategory
  149. */
  150. public function set_children_count($value)
  151. {
  152. $this->children_count = $value;
  153. return $this;
  154. }
  155. /**
  156. * Get children_count
  157. *
  158. * @return smallint
  159. */
  160. public function get_children_count()
  161. {
  162. return $this->children_count;
  163. }
  164. /**
  165. * Set auth_course_child
  166. *
  167. * @param string $value
  168. * @return CourseCategory
  169. */
  170. public function set_auth_course_child($value)
  171. {
  172. $this->auth_course_child = $value;
  173. return $this;
  174. }
  175. /**
  176. * Get auth_course_child
  177. *
  178. * @return string
  179. */
  180. public function get_auth_course_child()
  181. {
  182. return $this->auth_course_child;
  183. }
  184. /**
  185. * Set auth_cat_child
  186. *
  187. * @param string $value
  188. * @return CourseCategory
  189. */
  190. public function set_auth_cat_child($value)
  191. {
  192. $this->auth_cat_child = $value;
  193. return $this;
  194. }
  195. /**
  196. * Get auth_cat_child
  197. *
  198. * @return string
  199. */
  200. public function get_auth_cat_child()
  201. {
  202. return $this->auth_cat_child;
  203. }
  204. }