tool.class.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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 Tool extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\ToolRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\ToolRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Tool
  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 $id
  29. */
  30. protected $id;
  31. /**
  32. * @var string $name
  33. */
  34. protected $name;
  35. /**
  36. * @var string $link
  37. */
  38. protected $link;
  39. /**
  40. * @var string $image
  41. */
  42. protected $image;
  43. /**
  44. * @var boolean $visibility
  45. */
  46. protected $visibility;
  47. /**
  48. * @var string $admin
  49. */
  50. protected $admin;
  51. /**
  52. * @var string $address
  53. */
  54. protected $address;
  55. /**
  56. * @var boolean $added_tool
  57. */
  58. protected $added_tool;
  59. /**
  60. * @var string $target
  61. */
  62. protected $target;
  63. /**
  64. * @var string $category
  65. */
  66. protected $category;
  67. /**
  68. * @var integer $session_id
  69. */
  70. protected $session_id;
  71. /**
  72. * Set c_id
  73. *
  74. * @param integer $value
  75. * @return Tool
  76. */
  77. public function set_c_id($value)
  78. {
  79. $this->c_id = $value;
  80. return $this;
  81. }
  82. /**
  83. * Get c_id
  84. *
  85. * @return integer
  86. */
  87. public function get_c_id()
  88. {
  89. return $this->c_id;
  90. }
  91. /**
  92. * Set id
  93. *
  94. * @param integer $value
  95. * @return Tool
  96. */
  97. public function set_id($value)
  98. {
  99. $this->id = $value;
  100. return $this;
  101. }
  102. /**
  103. * Get id
  104. *
  105. * @return integer
  106. */
  107. public function get_id()
  108. {
  109. return $this->id;
  110. }
  111. /**
  112. * Set name
  113. *
  114. * @param string $value
  115. * @return Tool
  116. */
  117. public function set_name($value)
  118. {
  119. $this->name = $value;
  120. return $this;
  121. }
  122. /**
  123. * Get name
  124. *
  125. * @return string
  126. */
  127. public function get_name()
  128. {
  129. return $this->name;
  130. }
  131. /**
  132. * Set link
  133. *
  134. * @param string $value
  135. * @return Tool
  136. */
  137. public function set_link($value)
  138. {
  139. $this->link = $value;
  140. return $this;
  141. }
  142. /**
  143. * Get link
  144. *
  145. * @return string
  146. */
  147. public function get_link()
  148. {
  149. return $this->link;
  150. }
  151. /**
  152. * Set image
  153. *
  154. * @param string $value
  155. * @return Tool
  156. */
  157. public function set_image($value)
  158. {
  159. $this->image = $value;
  160. return $this;
  161. }
  162. /**
  163. * Get image
  164. *
  165. * @return string
  166. */
  167. public function get_image()
  168. {
  169. return $this->image;
  170. }
  171. /**
  172. * Set visibility
  173. *
  174. * @param boolean $value
  175. * @return Tool
  176. */
  177. public function set_visibility($value)
  178. {
  179. $this->visibility = $value;
  180. return $this;
  181. }
  182. /**
  183. * Get visibility
  184. *
  185. * @return boolean
  186. */
  187. public function get_visibility()
  188. {
  189. return $this->visibility;
  190. }
  191. /**
  192. * Set admin
  193. *
  194. * @param string $value
  195. * @return Tool
  196. */
  197. public function set_admin($value)
  198. {
  199. $this->admin = $value;
  200. return $this;
  201. }
  202. /**
  203. * Get admin
  204. *
  205. * @return string
  206. */
  207. public function get_admin()
  208. {
  209. return $this->admin;
  210. }
  211. /**
  212. * Set address
  213. *
  214. * @param string $value
  215. * @return Tool
  216. */
  217. public function set_address($value)
  218. {
  219. $this->address = $value;
  220. return $this;
  221. }
  222. /**
  223. * Get address
  224. *
  225. * @return string
  226. */
  227. public function get_address()
  228. {
  229. return $this->address;
  230. }
  231. /**
  232. * Set added_tool
  233. *
  234. * @param boolean $value
  235. * @return Tool
  236. */
  237. public function set_added_tool($value)
  238. {
  239. $this->added_tool = $value;
  240. return $this;
  241. }
  242. /**
  243. * Get added_tool
  244. *
  245. * @return boolean
  246. */
  247. public function get_added_tool()
  248. {
  249. return $this->added_tool;
  250. }
  251. /**
  252. * Set target
  253. *
  254. * @param string $value
  255. * @return Tool
  256. */
  257. public function set_target($value)
  258. {
  259. $this->target = $value;
  260. return $this;
  261. }
  262. /**
  263. * Get target
  264. *
  265. * @return string
  266. */
  267. public function get_target()
  268. {
  269. return $this->target;
  270. }
  271. /**
  272. * Set category
  273. *
  274. * @param string $value
  275. * @return Tool
  276. */
  277. public function set_category($value)
  278. {
  279. $this->category = $value;
  280. return $this;
  281. }
  282. /**
  283. * Get category
  284. *
  285. * @return string
  286. */
  287. public function get_category()
  288. {
  289. return $this->category;
  290. }
  291. /**
  292. * Set session_id
  293. *
  294. * @param integer $value
  295. * @return Tool
  296. */
  297. public function set_session_id($value)
  298. {
  299. $this->session_id = $value;
  300. return $this;
  301. }
  302. /**
  303. * Get session_id
  304. *
  305. * @return integer
  306. */
  307. public function get_session_id()
  308. {
  309. return $this->session_id;
  310. }
  311. }