123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <?php
- namespace Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- /**
- * Jury
- *
- * @ORM\Table(name="jury")
- * @ORM\Entity(repositoryClass="Entity\Repository\JuryRepository")
- */
- class Jury
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="name", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
- */
- private $name;
- /**
- * @var integer
- *
- * @ORM\Column(name="branch_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $branchId;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="opening_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
- */
- private $openingDate;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="closure_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
- */
- private $closureDate;
- /**
- * @var integer
- *
- * @ORM\Column(name="opening_user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $openingUserId;
- /**
- * @var integer
- *
- * @ORM\Column(name="closure_user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $closureUserId;
- /**
- * @var integer
- *
- * @ORM\Column(name="exercise_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $exerciseId;
- /**
- * @ORM\OneToMany(targetEntity="JuryMembers", mappedBy="jury")
- * @ORM\OrderBy({"roleId" = "ASC"})
- **/
- private $members;
- /**
- * @ORM\OneToMany(targetEntity="TrackExercise", mappedBy="attempt")
- **/
- private $exerciseAttempts;
- /**
- * @ORM\ManyToOne(targetEntity="BranchSync")
- * @ORM\JoinColumn(name="branch_id", referencedColumnName="id")
- */
- private $branch;
- /**
- *
- */
- public function __construct()
- {
- $this->members = new ArrayCollection();
- $this->exerciseAttempts = new ArrayCollection();
- }
- /**
- * @return ArrayCollection
- */
- public function getMembers()
- {
- return $this->members;
- }
- /**
- * @return ArrayCollection
- */
- public function getExerciseAttempts()
- {
- return $this->exerciseAttempts;
- }
- /**
- * Get branch
- *
- * @return string
- */
- public function getBranch()
- {
- return $this->branch;
- }
- /**
- * Set branch
- *
- * @param BranchSync $branch
- * @return Jury
- */
- public function setBranch(BranchSync $branch)
- {
- $this->branch = $branch;
- return $this;
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set name
- *
- * @param string $name
- * @return Jury
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Set branchId
- *
- * @param integer $branchId
- * @return Jury
- */
- public function setBranchId($branchId)
- {
- $this->branchId = $branchId;
- return $this;
- }
- /**
- * Get branchId
- *
- * @return integer
- */
- public function getBranchId()
- {
- return $this->branchId;
- }
- /**
- * Set openingDate
- *
- * @param \DateTime $openingDate
- * @return Jury
- */
- public function setOpeningDate($openingDate)
- {
- $this->openingDate = $openingDate;
- return $this;
- }
- /**
- * Get openingDate
- *
- * @return \DateTime
- */
- public function getOpeningDate()
- {
- return $this->openingDate;
- }
- /**
- * Set closureDate
- *
- * @param \DateTime $closureDate
- * @return Jury
- */
- public function setClosureDate($closureDate)
- {
- $this->closureDate = $closureDate;
- return $this;
- }
- /**
- * Get closureDate
- *
- * @return \DateTime
- */
- public function getClosureDate()
- {
- return $this->closureDate;
- }
- /**
- * Set openingUserId
- *
- * @param integer $openingUserId
- * @return Jury
- */
- public function setOpeningUserId($openingUserId)
- {
- $this->openingUserId = $openingUserId;
- return $this;
- }
- /**
- * Get openingUserId
- *
- * @return integer
- */
- public function getOpeningUserId()
- {
- return $this->openingUserId;
- }
- /**
- * Set closureUserId
- *
- * @param integer $closureUserId
- * @return Jury
- */
- public function setClosureUserId($closureUserId)
- {
- $this->closureUserId = $closureUserId;
- return $this;
- }
- /**
- * Get closureUserId
- *
- * @return integer
- */
- public function getClosureUserId()
- {
- return $this->closureUserId;
- }
- /**
- * Set exerciseId
- *
- * @param integer $exerciseId
- * @return Jury
- */
- public function setExerciseId($exerciseId)
- {
- $this->exerciseId = $exerciseId;
- return $this;
- }
- /**
- * Get exerciseId
- *
- * @return integer
- */
- public function getExerciseId()
- {
- return $this->exerciseId;
- }
- }
|