src/Entity/Users.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Config;
  4. use FOS\UserBundle\Model\User as BaseUser;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. /**
  8. * @ORM\Entity(repositoryClass="App\Repository\MobuppsUsersRepository")
  9. * @ORM\Table(name="users")
  10. */
  11. class Users extends BaseUser
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\Column(type="integer")
  16. * @ORM\GeneratedValue(strategy="AUTO")
  17. */
  18. protected $id;
  19. /** @ORM\Column(name="google_id", type="string", length=255, nullable=true) */
  20. protected $google_id;
  21. /** @ORM\Column(name="mts_id", type="string", length=255, nullable=true) */
  22. protected $mts_id;
  23. /** @ORM\Column(name="pingboard_id", type="string", length=255, nullable=true) */
  24. protected $pingboard_id;
  25. /** @ORM\Column(name="reports_to_id", type="string", length=255, nullable=true) */
  26. protected $reports_to_id;
  27. /** @ORM\Column(name="google_access_token", type="string", length=400, nullable=true) */
  28. protected $google_access_token;
  29. /** @ORM\Column(name="jwt_token", type="text", nullable=true) */
  30. protected $jwtToken;
  31. /** @ORM\Column(name="mts_access_token", type="string", length=2000, nullable=true) */
  32. protected $mts_access_token;
  33. /** @ORM\Column(type="string", length=1000, nullable=true) */
  34. protected $picture;
  35. /** @ORM\Column(type="string", length=1000, nullable=true) */
  36. protected $name;
  37. /** @ORM\Column(name="first_name", type="string", length=255, nullable=true) */
  38. protected $firstName;
  39. /** @ORM\Column(name="last_name", type="string", length=255, nullable=true) */
  40. protected $lastName;
  41. /** @ORM\Column(type="string", length=1000, nullable=true) */
  42. protected $position;
  43. /** @ORM\Column(type="string", length=1000, nullable=true) */
  44. protected $userInfo;
  45. /** @ORM\Column(type="string", length=1000, nullable=true) */
  46. protected $loginType;
  47. /** @ORM\Column(type="integer", nullable=true) */
  48. protected $teamId;
  49. /** @ORM\Column(type="json", nullable=true) */
  50. protected $whitelistedIps;
  51. /** @ORM\Column(type="string", nullable=true, options={"default"="active"}) */
  52. protected $status = Config::ACTIVE_STATUS;
  53. //YOU CAN ADD MORE CODE HERE !
  54. /**
  55. * Set googleId.
  56. *
  57. * @param string|null $googleId
  58. *
  59. * @return Users
  60. */
  61. public function setGoogleId($googleId = null)
  62. {
  63. $this->google_id = $googleId;
  64. return $this;
  65. }
  66. /**
  67. * Get googleId.
  68. *
  69. * @return string|null
  70. */
  71. public function getGoogleId()
  72. {
  73. return $this->google_id;
  74. }
  75. /**
  76. * Set googleAccessToken.
  77. *
  78. * @param string|null $googleAccessToken
  79. *
  80. * @return Users
  81. */
  82. public function setGoogleAccessToken($googleAccessToken = null)
  83. {
  84. $this->google_access_token = $googleAccessToken;
  85. return $this;
  86. }
  87. /**
  88. * Get googleAccessToken.
  89. *
  90. * @return string|null
  91. */
  92. public function getGoogleAccessToken()
  93. {
  94. return $this->google_access_token;
  95. }
  96. /**
  97. * Set picture.
  98. *
  99. * @param string|null $picture
  100. *
  101. * @return Users
  102. */
  103. public function setPicture($picture = null)
  104. {
  105. $this->picture = $picture;
  106. return $this;
  107. }
  108. /**
  109. * Get picture.
  110. *
  111. * @return string|null
  112. */
  113. public function getPicture()
  114. {
  115. return $this->picture;
  116. }
  117. /**
  118. * Set name.
  119. *
  120. * @param string|null $name
  121. *
  122. * @return Users
  123. */
  124. public function setName($name = null)
  125. {
  126. $this->name = $name;
  127. return $this;
  128. }
  129. /**
  130. * Get name.
  131. *
  132. * @return string|null
  133. */
  134. public function getName()
  135. {
  136. return $this->name;
  137. }
  138. /**
  139. * Set position.
  140. *
  141. * @param string|null $position
  142. *
  143. * @return Users
  144. */
  145. public function setPosition($position = null)
  146. {
  147. $this->position = $position;
  148. return $this;
  149. }
  150. /**
  151. * Get position.
  152. *
  153. * @return string|null
  154. */
  155. public function getPosition()
  156. {
  157. return $this->position;
  158. }
  159. /**
  160. * Set userInfo.
  161. *
  162. * @param string|null $userInfo
  163. *
  164. * @return Users
  165. */
  166. public function setUserInfo($userInfo = null)
  167. {
  168. $this->userInfo = $userInfo;
  169. return $this;
  170. }
  171. /**
  172. * Get userInfo.
  173. *
  174. * @return string|null
  175. */
  176. public function getUserInfo()
  177. {
  178. return $this->userInfo;
  179. }
  180. /**
  181. * Set teamId.
  182. *
  183. * @param int|null $teamId
  184. *
  185. * @return Users
  186. */
  187. public function setTeamId($teamId = null)
  188. {
  189. $this->teamId = $teamId;
  190. return $this;
  191. }
  192. /**
  193. * Get teamId.
  194. *
  195. * @return int|null
  196. */
  197. public function getTeamId()
  198. {
  199. return $this->teamId;
  200. }
  201. /**
  202. * Set status.
  203. *
  204. * @param string|null $status
  205. *
  206. * @return Users
  207. */
  208. public function setStatus($status = null)
  209. {
  210. $this->status = $status;
  211. return $this;
  212. }
  213. /**
  214. * Get status.
  215. *
  216. * @return string|null
  217. */
  218. public function getStatus()
  219. {
  220. return $this->status;
  221. }
  222. public function getId(): ?int
  223. {
  224. return $this->id;
  225. }
  226. public function getLoginType(): ?string
  227. {
  228. return $this->loginType;
  229. }
  230. public function setLoginType(?string $loginType): self
  231. {
  232. $this->loginType = $loginType;
  233. return $this;
  234. }
  235. public function getMtsId(): ?string
  236. {
  237. return $this->mts_id;
  238. }
  239. public function setMtsId(?string $mts_id): self
  240. {
  241. $this->mts_id = $mts_id;
  242. return $this;
  243. }
  244. public function getMtsAccessToken(): ?string
  245. {
  246. return $this->mts_access_token;
  247. }
  248. public function setMtsAccessToken(?string $mts_access_token): self
  249. {
  250. $this->mts_access_token = $mts_access_token;
  251. return $this;
  252. }
  253. public function getWhitelistedIps(): ?array
  254. {
  255. return $this->whitelistedIps;
  256. }
  257. public function setWhitelistedIps(?array $whitelistedIps): static
  258. {
  259. $this->whitelistedIps = $whitelistedIps;
  260. return $this;
  261. }
  262. public function getJwtToken(): ?string
  263. {
  264. return $this->jwtToken;
  265. }
  266. public function setJwtToken(?string $jwtToken): self
  267. {
  268. $this->jwtToken = $jwtToken;
  269. return $this;
  270. }
  271. public function getPingboardId(): ?string
  272. {
  273. return $this->pingboard_id;
  274. }
  275. public function setPingboardId(?string $pingboard_id): self
  276. {
  277. $this->pingboard_id = $pingboard_id;
  278. return $this;
  279. }
  280. public function getReportsToId(): ?string
  281. {
  282. return $this->reports_to_id;
  283. }
  284. public function setReportsToId(?string $reports_to_id): self
  285. {
  286. $this->reports_to_id = $reports_to_id;
  287. return $this;
  288. }
  289. public function getFirstName(): ?string
  290. {
  291. return $this->firstName;
  292. }
  293. public function setFirstName(?string $firstName): self
  294. {
  295. $this->firstName = $firstName;
  296. return $this;
  297. }
  298. public function getLastName(): ?string
  299. {
  300. return $this->lastName;
  301. }
  302. public function setLastName(?string $lastName): self
  303. {
  304. $this->lastName = $lastName;
  305. return $this;
  306. }
  307. }