Guest User

Untitled

a guest
Dec 16th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8. * Przedmiot
  9. *
  10. * @ORM\Table(name="przedmiot", indexes={@ORM\Index(name="fk_przedmiot_studia_typ1_idx", columns={"id_studia"}), @ORM\Index(name="fk_przedmiot_semestr1_idx", columns={"id_semestr"}), @ORM\Index(name="fk_przedmiot_plachta1_idx", columns={"id_plachta"})})
  11. * @ORM\Entity
  12. */
  13. class Przedmiot
  14. {
  15. /**
  16. * @var integer
  17. *
  18. * @ORM\Column(name="licz_godz_wyk", type="integer", nullable=true)
  19. */
  20. private $liczGodzWyk;
  21.  
  22. /**
  23. * @var integer
  24. *
  25. * @ORM\Column(name="licz_godz_lab", type="integer", nullable=true)
  26. */
  27. private $liczGodzLab;
  28.  
  29. /**
  30. * @var integer
  31. *
  32. * @ORM\Column(name="licz_godz_cw", type="integer", nullable=true)
  33. */
  34. private $liczGodzCw;
  35.  
  36. /**
  37. * @var integer
  38. *
  39. * @ORM\Column(name="licz_grup_wyk", type="integer", nullable=true)
  40. */
  41. private $liczGrupWyk;
  42.  
  43. /**
  44. * @var integer
  45. *
  46. * @ORM\Column(name="licz_grup_lab", type="integer", nullable=true)
  47. */
  48. private $liczGrupLab;
  49.  
  50. /**
  51. * @var integer
  52. *
  53. * @ORM\Column(name="licz_grup_cw", type="integer", nullable=true)
  54. */
  55. private $liczGrupCw;
  56.  
  57. /**
  58. * @var boolean
  59. *
  60. * @ORM\Column(name="archiwum", type="boolean", nullable=true)
  61. */
  62. private $archiwum;
  63.  
  64. /**
  65. * @var string
  66. *
  67. * @ORM\Column(name="opis", type="string", length=255, nullable=true)
  68. */
  69. private $opis;
  70.  
  71. /**
  72. * @var string
  73. *
  74. * @ORM\Column(name="nazwa", type="string", length=255, nullable=true)
  75. */
  76. private $nazwa;
  77.  
  78. /**
  79. * @var integer
  80. *
  81. * @ORM\Column(name="id_przedmiot", type="integer")
  82. * @ORM\Id
  83. * @ORM\GeneratedValue(strategy="IDENTITY")
  84. */
  85. private $idPrzedmiot;
  86.  
  87. /**
  88. * @var \AppBundle\Entity\Semestr
  89. *
  90. * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Semestr")
  91. * @ORM\JoinColumns({
  92. * @ORM\JoinColumn(name="id_semestr", referencedColumnName="id_semestr")
  93. * })
  94. */
  95. private $idSemestr;
  96.  
  97. /**
  98. * @var \AppBundle\Entity\StudiaTyp
  99. *
  100. * @ORM\ManyToOne(targetEntity="AppBundle\Entity\StudiaTyp")
  101. * @ORM\JoinColumns({
  102. * @ORM\JoinColumn(name="id_studia", referencedColumnName="id_studia")
  103. * })
  104. */
  105. private $idStudia;
  106.  
  107. /**
  108. * @var \AppBundle\Entity\Plachta
  109. *
  110. * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Plachta")
  111. * @ORM\JoinColumns({
  112. * @ORM\JoinColumn(name="id_plachta", referencedColumnName="id_plachta")
  113. * })
  114. */
  115. private $idPlachta;
  116.  
  117.  
  118.  
  119. /**
  120. * Set liczGodzWyk
  121. *
  122. * @param integer $liczGodzWyk
  123. *
  124. * @return Przedmiot
  125. */
  126. public function setLiczGodzWyk($liczGodzWyk)
  127. {
  128. $this->liczGodzWyk = $liczGodzWyk;
  129.  
  130. return $this;
  131. }
  132.  
  133. /**
  134. * Get liczGodzWyk
  135. *
  136. * @return integer
  137. */
  138. public function getLiczGodzWyk()
  139. {
  140. return $this->liczGodzWyk;
  141. }
  142.  
  143. /**
  144. * Set liczGodzLab
  145. *
  146. * @param integer $liczGodzLab
  147. *
  148. * @return Przedmiot
  149. */
  150. public function setLiczGodzLab($liczGodzLab)
  151. {
  152. $this->liczGodzLab = $liczGodzLab;
  153.  
  154. return $this;
  155. }
  156.  
  157. /**
  158. * Get liczGodzLab
  159. *
  160. * @return integer
  161. */
  162. public function getLiczGodzLab()
  163. {
  164. return $this->liczGodzLab;
  165. }
  166.  
  167. /**
  168. * Set liczGodzCw
  169. *
  170. * @param integer $liczGodzCw
  171. *
  172. * @return Przedmiot
  173. */
  174. public function setLiczGodzCw($liczGodzCw)
  175. {
  176. $this->liczGodzCw = $liczGodzCw;
  177.  
  178. return $this;
  179. }
  180.  
  181. /**
  182. * Get liczGodzCw
  183. *
  184. * @return integer
  185. */
  186. public function getLiczGodzCw()
  187. {
  188. return $this->liczGodzCw;
  189. }
  190.  
  191. /**
  192. * Set liczGrupWyk
  193. *
  194. * @param integer $liczGrupWyk
  195. *
  196. * @return Przedmiot
  197. */
  198. public function setLiczGrupWyk($liczGrupWyk)
  199. {
  200. $this->liczGrupWyk = $liczGrupWyk;
  201.  
  202. return $this;
  203. }
  204.  
  205. /**
  206. * Get liczGrupWyk
  207. *
  208. * @return integer
  209. */
  210. public function getLiczGrupWyk()
  211. {
  212. return $this->liczGrupWyk;
  213. }
  214.  
  215. /**
  216. * Set liczGrupLab
  217. *
  218. * @param integer $liczGrupLab
  219. *
  220. * @return Przedmiot
  221. */
  222. public function setLiczGrupLab($liczGrupLab)
  223. {
  224. $this->liczGrupLab = $liczGrupLab;
  225.  
  226. return $this;
  227. }
  228.  
  229. /**
  230. * Get liczGrupLab
  231. *
  232. * @return integer
  233. */
  234. public function getLiczGrupLab()
  235. {
  236. return $this->liczGrupLab;
  237. }
  238.  
  239. /**
  240. * Set liczGrupCw
  241. *
  242. * @param integer $liczGrupCw
  243. *
  244. * @return Przedmiot
  245. */
  246. public function setLiczGrupCw($liczGrupCw)
  247. {
  248. $this->liczGrupCw = $liczGrupCw;
  249.  
  250. return $this;
  251. }
  252.  
  253. /**
  254. * Get liczGrupCw
  255. *
  256. * @return integer
  257. */
  258. public function getLiczGrupCw()
  259. {
  260. return $this->liczGrupCw;
  261. }
  262.  
  263. /**
  264. * Set archiwum
  265. *
  266. * @param boolean $archiwum
  267. *
  268. * @return Przedmiot
  269. */
  270. public function setArchiwum($archiwum)
  271. {
  272. $this->archiwum = $archiwum;
  273.  
  274. return $this;
  275. }
  276.  
  277. /**
  278. * Get archiwum
  279. *
  280. * @return boolean
  281. */
  282. public function getArchiwum()
  283. {
  284. return $this->archiwum;
  285. }
  286.  
  287. /**
  288. * Set opis
  289. *
  290. * @param string $opis
  291. *
  292. * @return Przedmiot
  293. */
  294. public function setOpis($opis)
  295. {
  296. $this->opis = $opis;
  297.  
  298. return $this;
  299. }
  300.  
  301. /**
  302. * Get opis
  303. *
  304. * @return string
  305. */
  306. public function getOpis()
  307. {
  308. return $this->opis;
  309. }
  310.  
  311. /**
  312. * Set nazwa
  313. *
  314. * @param string nazwa
  315. *
  316. * @return Przedmiot
  317. */
  318. public function setNazwa($nazwa)
  319. {
  320. $this->nazwa = $nazwa;
  321.  
  322. return $this;
  323. }
  324.  
  325. /**
  326. * Get nazwa
  327. *
  328. * @return string
  329. */
  330. public function getNazwa()
  331. {
  332. return $this->nazwa;
  333. }
  334.  
  335. /**
  336. * Get idPrzedmiot
  337. *
  338. * @return integer
  339. */
  340. public function getIdPrzedmiot()
  341. {
  342. return $this->idPrzedmiot;
  343. }
  344.  
  345. /**
  346. * Set idSemestr
  347. *
  348. * @param \AppBundle\Entity\Semestr $idSemestr
  349. *
  350. * @return Przedmiot
  351. */
  352. public function setIdSemestr(\AppBundle\Entity\Semestr $idSemestr = null)
  353. {
  354. $this->idSemestr = $idSemestr;
  355.  
  356. return $this;
  357. }
  358.  
  359. /**
  360. * Get idSemestr
  361. *
  362. * @return \AppBundle\Entity\Semestr
  363. */
  364. public function getIdSemestr()
  365. {
  366. return $this->idSemestr;
  367. }
  368.  
  369. /**
  370. * Set idStudia
  371. *
  372. * @param \AppBundle\Entity\StudiaTyp $idStudia
  373. *
  374. * @return Przedmiot
  375. */
  376. public function setIdStudia(\AppBundle\Entity\StudiaTyp $idStudia = null)
  377. {
  378. $this->idStudia = $idStudia;
  379.  
  380. return $this;
  381. }
  382.  
  383. /**
  384. * Get idStudia
  385. *
  386. * @return \AppBundle\Entity\StudiaTyp
  387. */
  388. public function getIdStudia()
  389. {
  390. return $this->idStudia;
  391. }
  392.  
  393. /**
  394. * Set idPlachta
  395. *
  396. * @param \AppBundle\Entity\Plachta $idPlachta
  397. *
  398. * @return Przedmiot
  399. */
  400. public function setIdPlachta(\AppBundle\Entity\Plachta $idPlachta = null)
  401. {
  402. $this->idPlachta = $idPlachta;
  403.  
  404. return $this;
  405. }
  406.  
  407. /**
  408. * Get idPlachta
  409. *
  410. * @return \AppBundle\Entity\Plachta
  411. */
  412. public function getIdPlachta()
  413. {
  414. return $this->idPlachta;
  415. }
  416. public function __toString()
  417. {
  418. // TODO: Implement __toString() method.
  419. return $this->getNazwa();
  420. }
  421.  
  422. }
Add Comment
Please, Sign In to add comment