src/UserBundle/Entity/SystimeUser.php line 11

Open in your IDE?
  1. <?php
  2. namespace UserBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table("systime_user")
  6. * @ORM\Entity
  7. */
  8. class SystimeUser
  9. {
  10. /**
  11. * @var int
  12. *
  13. * @ORM\Column(name="id", type="integer")
  14. * @ORM\Id
  15. */
  16. private int $id;
  17. /**
  18. * @var int
  19. *
  20. * @ORM\Column
  21. */
  22. private int $timestamp;
  23. /**
  24. * @var bool
  25. *
  26. * @ORM\Column
  27. */
  28. private bool $deleted;
  29. /**
  30. * @var bool
  31. *
  32. * @ORM\Column
  33. */
  34. private bool $disabled;
  35. /**
  36. * @var string
  37. *
  38. * @ORM\Column(name="password", type="string", length=255)
  39. */
  40. private string $password;
  41. /**
  42. * @var string
  43. *
  44. * @ORM\Column(name="user_group", type="string", length=255)
  45. */
  46. private string $userGroup;
  47. /**
  48. * @var string
  49. *
  50. * @ORM\Column(name="email", type="string", length=255)
  51. */
  52. private string $email;
  53. /**
  54. * @var string
  55. *
  56. * @ORM\Column(name="real_name", type="string", length=255)
  57. */
  58. private string $realName;
  59. /**
  60. * @var string
  61. *
  62. * @ORM\Column(name="customer_access", type="string", length=255)
  63. */
  64. private string $customerAccess;
  65. /**
  66. * @var string
  67. *
  68. * @ORM\Column(name="isbn_access", type="string", length=512)
  69. */
  70. private string $isbnAccess;
  71. /**
  72. * @var User
  73. * @ORM\OneToOne(targetEntity="User")
  74. * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
  75. */
  76. private User $user;
  77. public function getId(): int
  78. {
  79. return $this->id;
  80. }
  81. public function setId(int $id): void
  82. {
  83. $this->id = $id;
  84. }
  85. public function getTimestamp(): int
  86. {
  87. return $this->timestamp;
  88. }
  89. public function setTimestamp(int $timestamp): void
  90. {
  91. $this->timestamp = $timestamp;
  92. }
  93. public function isDeleted(): bool
  94. {
  95. return $this->deleted;
  96. }
  97. public function setDeleted(bool $deleted): void
  98. {
  99. $this->deleted = $deleted;
  100. }
  101. public function isDisabled(): bool
  102. {
  103. return $this->disabled;
  104. }
  105. public function setDisabled(bool $disabled): void
  106. {
  107. $this->disabled = $disabled;
  108. }
  109. public function getPassword(): string
  110. {
  111. return $this->password;
  112. }
  113. public function setPassword(string $password): void
  114. {
  115. $this->password = $password;
  116. }
  117. public function getUserGroup(): string
  118. {
  119. return $this->userGroup;
  120. }
  121. public function setUserGroup(string $userGroup): void
  122. {
  123. $this->userGroup = $userGroup;
  124. }
  125. public function getUserGroupArray(): array
  126. {
  127. if ($this->userGroup === '')
  128. return [];
  129. return explode(',', $this->userGroup);
  130. }
  131. public function getEmail(): string
  132. {
  133. return $this->email;
  134. }
  135. public function setEmail(string $email): void
  136. {
  137. $this->email = $email;
  138. }
  139. public function getRealName(): string
  140. {
  141. return $this->realName;
  142. }
  143. public function setRealName(string $realName): void
  144. {
  145. $this->realName = $realName;
  146. }
  147. public function getCustomerAccess(): string
  148. {
  149. return $this->customerAccess;
  150. }
  151. public function setCustomerAccess(string $customerAccess): void
  152. {
  153. $this->customerAccess = $customerAccess;
  154. }
  155. public function getCustomerAccessArray(): array
  156. {
  157. if ($this->customerAccess === '')
  158. return [];
  159. return explode(',', $this->customerAccess);
  160. }
  161. public function getIsbnAccess(): string
  162. {
  163. return $this->isbnAccess;
  164. }
  165. public function getIsbnAccessArray(): array
  166. {
  167. if ($this->isbnAccess === '')
  168. return [];
  169. return explode(',', $this->isbnAccess);
  170. }
  171. public function setIsbnAccess(string $isbnAccess): void
  172. {
  173. $this->isbnAccess = $isbnAccess;
  174. }
  175. public function getUser(): User
  176. {
  177. return $this->user;
  178. }
  179. public function setUser(User $user): void
  180. {
  181. $this->user = $user;
  182. }
  183. }