BranchUsers.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * JuryMembers
  7. *
  8. * @ORM\Table(name="branch_users")
  9. * @ORM\Entity(repositoryClass="Entity\Repository\JuryMembersRepository")
  10. */
  11. class BranchUsers
  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 integer
  23. *
  24. * @ORM\Column(name="user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  25. */
  26. private $userId;
  27. /**
  28. * @var integer
  29. *
  30. * @ORM\Column(name="role_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  31. */
  32. private $roleId;
  33. /**
  34. * @var integer
  35. *
  36. * @ORM\Column(name="branch_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  37. */
  38. private $branchId;
  39. /**
  40. * @ORM\ManyToOne(targetEntity="User")
  41. * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id")
  42. */
  43. private $user;
  44. /**
  45. * @ORM\ManyToOne(targetEntity="BranchSync")
  46. * @ORM\JoinColumn(name="branch_id", referencedColumnName="id")
  47. */
  48. private $branch;
  49. /**
  50. * @ORM\ManyToOne(targetEntity="Role")
  51. * @ORM\JoinColumn(name="role_id", referencedColumnName="id")
  52. */
  53. private $role;
  54. /**
  55. *
  56. */
  57. public function __construct()
  58. {
  59. }
  60. /**
  61. * @return mixed
  62. */
  63. public function getRole()
  64. {
  65. return $this->role;
  66. }
  67. public function setRole(Role $role)
  68. {
  69. $this->role = $role;
  70. }
  71. public function getBranch()
  72. {
  73. return $this->branch;
  74. }
  75. public function setBranch(BranchSync $branch)
  76. {
  77. $this->branch = $branch;
  78. }
  79. public function getUser()
  80. {
  81. return $this->user;
  82. }
  83. public function setUser(User $user)
  84. {
  85. $this->user = $user;
  86. }
  87. /**
  88. * Get id
  89. *
  90. * @return integer
  91. */
  92. public function getId()
  93. {
  94. return $this->id;
  95. }
  96. /**
  97. * Set userId
  98. *
  99. * @param integer $userId
  100. * @return BranchUsers
  101. */
  102. public function setUserId($userId)
  103. {
  104. $this->userId = $userId;
  105. return $this;
  106. }
  107. /**
  108. * Get userId
  109. *
  110. * @return integer
  111. */
  112. public function getUserId()
  113. {
  114. return $this->userId;
  115. }
  116. /**
  117. * Set roleId
  118. *
  119. * @param integer $roleId
  120. * @return BranchUsers
  121. */
  122. public function setRoleId($roleId)
  123. {
  124. $this->roleId = $roleId;
  125. return $this;
  126. }
  127. /**
  128. * Get roleId
  129. *
  130. * @return integer
  131. */
  132. public function getRoleId()
  133. {
  134. return $this->roleId;
  135. }
  136. /**
  137. * Set branchId
  138. *
  139. * @param integer $id
  140. * @return BranchUsers
  141. */
  142. public function setBranchId($id)
  143. {
  144. $this->branchId = $id;
  145. return $this;
  146. }
  147. /**
  148. * Get branchId
  149. *
  150. * @return integer
  151. */
  152. public function getBranchId()
  153. {
  154. return $this->branchId;
  155. }
  156. }