Jury.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * Jury
  7. *
  8. * @ORM\Table(name="jury")
  9. * @ORM\Entity(repositoryClass="Entity\Repository\JuryRepository")
  10. */
  11. class Jury
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $id;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(name="name", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  25. */
  26. private $name;
  27. /**
  28. * @var integer
  29. *
  30. * @ORM\Column(name="branch_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  31. */
  32. private $branchId;
  33. /**
  34. * @var \DateTime
  35. *
  36. * @ORM\Column(name="opening_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
  37. */
  38. private $openingDate;
  39. /**
  40. * @var \DateTime
  41. *
  42. * @ORM\Column(name="closure_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
  43. */
  44. private $closureDate;
  45. /**
  46. * @var integer
  47. *
  48. * @ORM\Column(name="opening_user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  49. */
  50. private $openingUserId;
  51. /**
  52. * @var integer
  53. *
  54. * @ORM\Column(name="closure_user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  55. */
  56. private $closureUserId;
  57. /**
  58. * @var integer
  59. *
  60. * @ORM\Column(name="exercise_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  61. */
  62. private $exerciseId;
  63. /**
  64. * @ORM\OneToMany(targetEntity="JuryMembers", mappedBy="jury")
  65. * @ORM\OrderBy({"roleId" = "ASC"})
  66. **/
  67. private $members;
  68. /**
  69. * @ORM\OneToMany(targetEntity="TrackExercise", mappedBy="attempt")
  70. **/
  71. private $exerciseAttempts;
  72. /**
  73. * @ORM\ManyToOne(targetEntity="BranchSync")
  74. * @ORM\JoinColumn(name="branch_id", referencedColumnName="id")
  75. */
  76. private $branch;
  77. /**
  78. *
  79. */
  80. public function __construct()
  81. {
  82. $this->members = new ArrayCollection();
  83. $this->exerciseAttempts = new ArrayCollection();
  84. }
  85. /**
  86. * @return ArrayCollection
  87. */
  88. public function getMembers()
  89. {
  90. return $this->members;
  91. }
  92. /**
  93. * @return ArrayCollection
  94. */
  95. public function getExerciseAttempts()
  96. {
  97. return $this->exerciseAttempts;
  98. }
  99. /**
  100. * Get branch
  101. *
  102. * @return string
  103. */
  104. public function getBranch()
  105. {
  106. return $this->branch;
  107. }
  108. /**
  109. * Set branch
  110. *
  111. * @param BranchSync $branch
  112. * @return Jury
  113. */
  114. public function setBranch(BranchSync $branch)
  115. {
  116. $this->branch = $branch;
  117. return $this;
  118. }
  119. /**
  120. * Get id
  121. *
  122. * @return integer
  123. */
  124. public function getId()
  125. {
  126. return $this->id;
  127. }
  128. /**
  129. * Set name
  130. *
  131. * @param string $name
  132. * @return Jury
  133. */
  134. public function setName($name)
  135. {
  136. $this->name = $name;
  137. return $this;
  138. }
  139. /**
  140. * Get name
  141. *
  142. * @return string
  143. */
  144. public function getName()
  145. {
  146. return $this->name;
  147. }
  148. /**
  149. * Set branchId
  150. *
  151. * @param integer $branchId
  152. * @return Jury
  153. */
  154. public function setBranchId($branchId)
  155. {
  156. $this->branchId = $branchId;
  157. return $this;
  158. }
  159. /**
  160. * Get branchId
  161. *
  162. * @return integer
  163. */
  164. public function getBranchId()
  165. {
  166. return $this->branchId;
  167. }
  168. /**
  169. * Set openingDate
  170. *
  171. * @param \DateTime $openingDate
  172. * @return Jury
  173. */
  174. public function setOpeningDate($openingDate)
  175. {
  176. $this->openingDate = $openingDate;
  177. return $this;
  178. }
  179. /**
  180. * Get openingDate
  181. *
  182. * @return \DateTime
  183. */
  184. public function getOpeningDate()
  185. {
  186. return $this->openingDate;
  187. }
  188. /**
  189. * Set closureDate
  190. *
  191. * @param \DateTime $closureDate
  192. * @return Jury
  193. */
  194. public function setClosureDate($closureDate)
  195. {
  196. $this->closureDate = $closureDate;
  197. return $this;
  198. }
  199. /**
  200. * Get closureDate
  201. *
  202. * @return \DateTime
  203. */
  204. public function getClosureDate()
  205. {
  206. return $this->closureDate;
  207. }
  208. /**
  209. * Set openingUserId
  210. *
  211. * @param integer $openingUserId
  212. * @return Jury
  213. */
  214. public function setOpeningUserId($openingUserId)
  215. {
  216. $this->openingUserId = $openingUserId;
  217. return $this;
  218. }
  219. /**
  220. * Get openingUserId
  221. *
  222. * @return integer
  223. */
  224. public function getOpeningUserId()
  225. {
  226. return $this->openingUserId;
  227. }
  228. /**
  229. * Set closureUserId
  230. *
  231. * @param integer $closureUserId
  232. * @return Jury
  233. */
  234. public function setClosureUserId($closureUserId)
  235. {
  236. $this->closureUserId = $closureUserId;
  237. return $this;
  238. }
  239. /**
  240. * Get closureUserId
  241. *
  242. * @return integer
  243. */
  244. public function getClosureUserId()
  245. {
  246. return $this->closureUserId;
  247. }
  248. /**
  249. * Set exerciseId
  250. *
  251. * @param integer $exerciseId
  252. * @return Jury
  253. */
  254. public function setExerciseId($exerciseId)
  255. {
  256. $this->exerciseId = $exerciseId;
  257. return $this;
  258. }
  259. /**
  260. * Get exerciseId
  261. *
  262. * @return integer
  263. */
  264. public function getExerciseId()
  265. {
  266. return $this->exerciseId;
  267. }
  268. }