Guest User

Untitled

a guest
Oct 15th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. <?php
  2.  
  3. namespace BeerReview\UserBundle\Model;
  4.  
  5. use Doctrine\ORM\Mapping as ORM,
  6. FOS\UserBundle\Entity\User as BaseUser;
  7.  
  8. /**
  9. * BeerReview\UserBundle\Model\User
  10. *
  11. * @Table(name="rfink_beer.User")
  12. * @Entity(repositoryClass="BeerReview\UserBundle\Model\Repository\UserRespository")
  13. */
  14. class User extends BaseUser
  15. {
  16. /**
  17. * @var integer $UserId
  18. *
  19. * @Column(name="UserId", type="integer", precision=0, scale=0, nullable=false, unique=false)
  20. * @Id
  21. * @GeneratedValue(strategy="IDENTITY")
  22. */
  23. private $UserId;
  24.  
  25. /**
  26. * @var string $Email
  27. *
  28. * @Column(name="Email", type="string", length=255, precision=0, scale=0, nullable=false, unique=true)
  29. */
  30. private $Email;
  31.  
  32. /**
  33. * @var string $UserPassword
  34. *
  35. * @Column(name="UserPassword", type="string", length=32, precision=0, scale=0, nullable=false, unique=false)
  36. */
  37. private $UserPassword;
  38.  
  39. /**
  40. * @var string $FirstName
  41. *
  42. * @Column(name="FirstName", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $FirstName;
  45.  
  46. /**
  47. * @var string $LastName
  48. *
  49. * @Column(name="LastName", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  50. */
  51. private $LastName;
  52.  
  53. /**
  54. * @var string $Username
  55. *
  56. * @Column(name="Username", type="string", length=255, precision=0, scale=0, nullable=false, unique=true)
  57. */
  58. private $Username;
  59.  
  60. /**
  61. * @var string $PostalCode
  62. *
  63. * @Column(name="PostalCode", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  64. */
  65. private $PostalCode;
  66.  
  67. /**
  68. * @var string $Gender
  69. *
  70. * @Column(name="Gender", type="string", length=1, precision=0, scale=0, nullable=false, unique=false)
  71. */
  72. private $Gender;
  73.  
  74. /**
  75. * @var date $DateOfBirth
  76. *
  77. * @Column(name="DateOfBirth", type="date", precision=0, scale=0, nullable=false, unique=false)
  78. */
  79. private $DateOfBirth;
  80.  
  81. /**
  82. * @var BeerReview\UserBundle\Model\Country
  83. *
  84. * @ManyToOne(targetEntity="BeerReview\UserBundle\Model\Country")
  85. * @JoinColumns({
  86. * @JoinColumn(name="CountryId", referencedColumnName="CountryId", nullable=true)
  87. * })
  88. */
  89. private $Country;
  90.  
  91.  
  92. /**
  93. * Get UserId
  94. *
  95. * @return integer
  96. */
  97. public function getUserId()
  98. {
  99. return $this->UserId;
  100. }
  101.  
  102. /**
  103. * Set Email
  104. *
  105. * @param string $email
  106. */
  107. public function setEmail($email)
  108. {
  109. $this->Email = $email;
  110. }
  111.  
  112. /**
  113. * Get Email
  114. *
  115. * @return string
  116. */
  117. public function getEmail()
  118. {
  119. return $this->Email;
  120. }
  121.  
  122. /**
  123. * Set UserPassword
  124. *
  125. * @param string $userPassword
  126. */
  127. public function setUserPassword($userPassword)
  128. {
  129. $this->UserPassword = $userPassword;
  130. }
  131.  
  132. /**
  133. * Get UserPassword
  134. *
  135. * @return string
  136. */
  137. public function getUserPassword()
  138. {
  139. return $this->UserPassword;
  140. }
  141.  
  142. /**
  143. * Set FirstName
  144. *
  145. * @param string $firstName
  146. */
  147. public function setFirstName($firstName)
  148. {
  149. $this->FirstName = $firstName;
  150. }
  151.  
  152. /**
  153. * Get FirstName
  154. *
  155. * @return string
  156. */
  157. public function getFirstName()
  158. {
  159. return $this->FirstName;
  160. }
  161.  
  162. /**
  163. * Set LastName
  164. *
  165. * @param string $lastName
  166. */
  167. public function setLastName($lastName)
  168. {
  169. $this->LastName = $lastName;
  170. }
  171.  
  172. /**
  173. * Get LastName
  174. *
  175. * @return string
  176. */
  177. public function getLastName()
  178. {
  179. return $this->LastName;
  180. }
  181.  
  182. /**
  183. * Set Username
  184. *
  185. * @param string $username
  186. */
  187. public function setUsername($username)
  188. {
  189. $this->Username = $username;
  190. }
  191.  
  192. /**
  193. * Get Username
  194. *
  195. * @return string
  196. */
  197. public function getUsername()
  198. {
  199. return $this->Username;
  200. }
  201.  
  202. /**
  203. * Set PostalCode
  204. *
  205. * @param string $postalCode
  206. */
  207. public function setPostalCode($postalCode)
  208. {
  209. $this->PostalCode = $postalCode;
  210. }
  211.  
  212. /**
  213. * Get PostalCode
  214. *
  215. * @return string
  216. */
  217. public function getPostalCode()
  218. {
  219. return $this->PostalCode;
  220. }
  221.  
  222. /**
  223. * Set Gender
  224. *
  225. * @param string $gender
  226. */
  227. public function setGender($gender)
  228. {
  229. $this->Gender = $gender;
  230. }
  231.  
  232. /**
  233. * Get Gender
  234. *
  235. * @return string
  236. */
  237. public function getGender()
  238. {
  239. return $this->Gender;
  240. }
  241.  
  242. /**
  243. * Set DateOfBirth
  244. *
  245. * @param date $dateOfBirth
  246. */
  247. public function setDateOfBirth($dateOfBirth)
  248. {
  249. $this->DateOfBirth = $dateOfBirth;
  250. }
  251.  
  252. /**
  253. * Get DateOfBirth
  254. *
  255. * @return date
  256. */
  257. public function getDateOfBirth()
  258. {
  259. return $this->DateOfBirth;
  260. }
  261.  
  262. /**
  263. * Set Country
  264. *
  265. * @param BeerReview\UserBundle\Model\Country $country
  266. */
  267. public function setCountry(\BeerReview\UserBundle\Model\Country $country)
  268. {
  269. $this->Country = $country;
  270. }
  271.  
  272. /**
  273. * Get Country
  274. *
  275. * @return BeerReview\UserBundle\Model\Country
  276. */
  277. public function getCountry()
  278. {
  279. return $this->Country;
  280. }
  281. }
Add Comment
Please, Sign In to add comment