src/AdminBundle/Entity/User.php line 15

Open in your IDE?
  1. <?php
  2. namespace AdminBundle\Entity;
  3. use Ramsey\Uuid\Uuid;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Sonata\UserBundle\Entity\BaseUser;
  7. /**
  8. * This file has been generated by the Sonata EasyExtends bundle.
  9. */
  10. #[ORM\Table(name: 'user')]
  11. #[ORM\Entity(repositoryClass: \AdminBundle\Repository\UserRepository::class)]
  12. class User extends BaseUser
  13. {
  14. const ROLE_ADMIN = 'ROLE_ADMIN';
  15. const ROLE_OPERATOR = 'ROLE_OPERATOR';
  16. const ROLE_OPERATOR_ADMIN = 'ROLE_OPERATOR_ADMIN';
  17. const ROLE_CLIENT = 'ROLE_CLIENT';
  18. const ROLE_DRIVER = 'ROLE_DRIVER';
  19. const ROLE_COMPANY = 'ROLE_COMPANY';
  20. const ROLE_API = 'ROLE_API';
  21. const BRAINTREE_CUSTOMER = 1;
  22. const STRIPE_CUSTOMER = 5;
  23. public const SYSTEM_USER_USERNAME = 'system@ctlf.co.uk';
  24. /**
  25. * @var integer
  26. */
  27. #[ORM\Column(name: 'id', type: 'integer', nullable: false)]
  28. #[ORM\Id]
  29. #[ORM\GeneratedValue(strategy: 'IDENTITY')]
  30. protected $id;
  31. /**
  32. * Old FosUser columns - props -- start
  33. */
  34. #[ORM\Column(name: 'two_step_code', type: 'string', nullable: true, length: 255)]
  35. protected $twoStepVerificationCode;
  36. #[ORM\Column(name: 'date_of_birth', type: 'datetime', nullable: true)]
  37. protected $dateOfBirth;
  38. #[ORM\Column(name: 'firstname', type: 'string', nullable: true, length: 64)]
  39. protected $firstname;
  40. #[ORM\Column(name: 'lastname', type: 'string', nullable: true, length: 64)]
  41. protected $lastname;
  42. #[ORM\Column(name: 'website', type: 'string', nullable: true, length: 64)]
  43. protected $website;
  44. #[ORM\Column(name: 'biography', type: 'string', nullable: true, length: 1000)]
  45. protected $biography;
  46. #[ORM\Column(name: 'gender', type: 'string', nullable: true, length: 1)]
  47. protected $gender = null;
  48. #[ORM\Column(name: 'locale', type: 'string', nullable: true, length: 8)]
  49. protected $locale;
  50. #[ORM\Column(name: 'timezone', type: 'string', nullable: true, length: 64)]
  51. protected $timezone;
  52. #[ORM\Column(name: 'phone', type: 'string', nullable: true, length: 64)]
  53. protected $phone;
  54. #[ORM\Column(name: 'facebook_uid', type: 'string', nullable: true, length: 255)]
  55. protected $facebookUid;
  56. #[ORM\Column(name: 'facebook_name', type: 'string', nullable: true, length: 255)]
  57. protected $facebookName;
  58. #[ORM\Column(name: 'facebook_data', type: 'json', nullable: true)]
  59. protected $facebookData;
  60. #[ORM\Column(name: 'twitter_uid', type: 'string', nullable: true, length: 255)]
  61. protected $twitterUid;
  62. #[ORM\Column(name: 'twitter_name', type: 'string', nullable: true, length: 255)]
  63. protected $twitterName;
  64. #[ORM\Column(name: 'twitter_data', type: 'json', nullable: true)]
  65. protected $twitterData;
  66. #[ORM\Column(name: 'gplus_uid', type: 'string', nullable: true, length: 255)]
  67. protected $gplusUid;
  68. #[ORM\Column(name: 'gplus_name', type: 'string', nullable: true, length: 255)]
  69. protected $gplusName;
  70. #[ORM\Column(name: 'gplus_data', type: 'json', nullable: true)]
  71. protected $gplusData;
  72. #[ORM\Column(name: 'token', type: 'string', nullable: true, length: 255)]
  73. protected $token;
  74. /**
  75. * Old FosUser columns - props -- end
  76. */
  77. /**
  78. * @var Account
  79. */
  80. #[ORM\OneToOne(targetEntity: \Account::class, mappedBy: 'user')]
  81. private $account;
  82. /**
  83. * @var Company
  84. */
  85. #[ORM\OneToOne(targetEntity: \AdminBundle\Entity\Company::class, mappedBy: 'user')]
  86. private $company;
  87. /**
  88. * @var Driver
  89. */
  90. #[ORM\OneToOne(targetEntity: \AdminBundle\Entity\Driver::class, mappedBy: 'user', cascade: ['persist'])]
  91. private $driver;
  92. /**
  93. * @var string
  94. */
  95. #[ORM\Column(name: 'api_key', type: 'string', length: 64, nullable: true, unique: true)]
  96. protected $apiKey;
  97. #[ORM\OneToMany(targetEntity: \AdminBundle\Entity\ChangeRequests::class, mappedBy: 'fromUser')]
  98. private $changeRequests;
  99. #[ORM\OneToMany(targetEntity: \AdminBundle\Entity\ClientChangeRequest::class, mappedBy: 'fromUser')]
  100. private $clientChangeRequests;
  101. /**
  102. * @var string
  103. */
  104. #[ORM\Column(name: 'allow_ips_to_login', type: 'text', nullable: true)]
  105. private $allowIpsToLogin;
  106. /**
  107. * @var string
  108. */
  109. #[ORM\Column(name: 'device_id', type: 'string', length: 264, nullable: true, unique: false)]
  110. protected $deviceId;
  111. /**
  112. * @var string
  113. */
  114. #[ORM\Column(name: 'device_uid', type: 'string', length: 264, nullable: true, unique: false)]
  115. protected $deviceUid;
  116. /**
  117. * @var string
  118. */
  119. #[ORM\Column(name: 'device_xid', type: 'string', length: 64, nullable: true, unique: false)]
  120. protected $deviceXid;
  121. /**
  122. * @var string
  123. */
  124. #[ORM\Column(name: 'device_application_name', type: 'string', length: 64, nullable: true, unique: false)]
  125. protected $deviceApplicationName;
  126. /**
  127. * @var string
  128. */
  129. #[ORM\Column(name: 'device_application_version', type: 'string', length: 64, nullable: true, unique: false)]
  130. protected $deviceApplicationVersion;
  131. /**
  132. * @var string
  133. */
  134. #[ORM\Column(name: 'device_model', type: 'string', length: 64, nullable: true, unique: false)]
  135. protected $deviceModel;
  136. /**
  137. * @var string
  138. */
  139. #[ORM\Column(name: 'device_product', type: 'string', length: 64, nullable: true, unique: false)]
  140. protected $deviceProduct;
  141. /**
  142. * @var string
  143. */
  144. #[ORM\Column(name: 'device_type', type: 'string', length: 64, nullable: true, unique: false)]
  145. protected $deviceType;
  146. /**
  147. * @var string
  148. */
  149. #[ORM\Column(name: 'device_vendor', type: 'string', length: 64, nullable: true, unique: false)]
  150. protected $deviceVendor;
  151. /**
  152. * @var string
  153. */
  154. #[ORM\Column(name: 'device_os_api_version', type: 'string', length: 64, nullable: true, unique: false)]
  155. protected $deviceOsApiVersion;
  156. /**
  157. * @var string
  158. */
  159. #[ORM\Column(name: 'device_os_type', type: 'string', length: 64, nullable: true, unique: false)]
  160. protected $deviceOsType;
  161. /**
  162. * @var string
  163. */
  164. #[ORM\Column(name: 'device_os_version', type: 'string', length: 64, nullable: true, unique: false)]
  165. protected $deviceOsVersion;
  166. /**
  167. * @var string
  168. */
  169. #[ORM\Column(name: 'device_sandbox', type: 'string', length: 64, nullable: true, unique: false)]
  170. protected $deviceSandbox;
  171. /**
  172. * @var string
  173. */
  174. #[ORM\Column(name: 'device_screen_density', type: 'string', length: 64, nullable: true, unique: false)]
  175. protected $deviceScreenDensity;
  176. /**
  177. * @var string
  178. */
  179. #[ORM\Column(name: 'device_screen_height', type: 'string', length: 64, nullable: true, unique: false)]
  180. protected $deviceScreenHeight;
  181. /**
  182. * @var string
  183. */
  184. #[ORM\Column(name: 'device_screen_orientation', type: 'string', length: 64, nullable: true, unique: false)]
  185. protected $deviceScreenOrientation;
  186. /**
  187. * @var string
  188. */
  189. #[ORM\Column(name: 'device_screen_width', type: 'string', length: 64, nullable: true, unique: false)]
  190. protected $deviceScreenWidth;
  191. /**
  192. * @var string
  193. */
  194. #[ORM\Column(name: 'device_time_zone', type: 'string', length: 64, nullable: true, unique: false)]
  195. protected $deviceTimeZone;
  196. /**
  197. * @var string
  198. */
  199. #[ORM\Column(name: 'device_datetime', type: 'string', length: 64, nullable: true, unique: false)]
  200. protected $deviceDatetime;
  201. /**
  202. * @var string
  203. */
  204. #[ORM\Column(name: 'apple_uid', type: 'string', length: 100, nullable: true)]
  205. protected $appleUid;
  206. /**
  207. * @var string
  208. */
  209. #[ORM\Column(name: 'braintree_customer', type: 'string', length: 255, nullable: true)]
  210. protected $braintreeCustomer;
  211. /**
  212. * @var string
  213. */
  214. #[ORM\Column(name: 'stripe_customer', type: 'string', length: 255, nullable: true)]
  215. protected $stripeCustomer;
  216. /**
  217. * @var int
  218. */
  219. #[ORM\Column(name: 'review_rating', type: 'decimal', precision: 7, scale: 2, nullable: false, options: ['default' => 5])]
  220. protected $reviewRating;
  221. #[ORM\OneToMany(targetEntity: \Booking::class, mappedBy: 'clientUser')]
  222. private $clientBookings;
  223. public function __construct()
  224. {
  225. $this->reviewRating = 5;
  226. $this->apiKey = str_replace('-', '', Uuid::uuid4());
  227. }
  228. /**
  229. * Get id
  230. *
  231. * @return int $id
  232. */
  233. public function getId()
  234. {
  235. return $this->id;
  236. }
  237. /**
  238. * @return Account
  239. */
  240. public function getAccount()
  241. {
  242. return $this->account;
  243. }
  244. /**
  245. * @param Account $account
  246. * @return User
  247. */
  248. public function setAccount(Account $account)
  249. {
  250. $this->account = $account;
  251. return $this;
  252. }
  253. /**
  254. * @return Company
  255. */
  256. public function getCompany()
  257. {
  258. return $this->company;
  259. }
  260. /**
  261. * @param Company $company
  262. * @return User
  263. */
  264. public function setCompany(Company $company)
  265. {
  266. $this->company = $company;
  267. return $this;
  268. }
  269. /**
  270. * @return Driver
  271. */
  272. public function getDriver()
  273. {
  274. return $this->driver;
  275. }
  276. /**
  277. * @param Driver $driver
  278. * @return User
  279. */
  280. public function setDriver(Driver $driver): User
  281. {
  282. $this->driver = $driver;
  283. return $this;
  284. }
  285. /**
  286. * @return string
  287. */
  288. public function getApiKey()
  289. {
  290. return $this->apiKey;
  291. }
  292. /**
  293. * @param string $apiKey
  294. */
  295. public function setApiKey($apiKey)
  296. {
  297. $this->apiKey = $apiKey;
  298. }
  299. public function toArray()
  300. {
  301. return get_object_vars($this);
  302. }
  303. public function getFullname() {
  304. return $this->getFirstname().' '.$this->getLastname();
  305. }
  306. public function __toString()
  307. {
  308. $string = $this->getFullname();
  309. if ($this->getPhone()) {
  310. $string .= ' - ' . $this->getPhone();
  311. }
  312. $string .= ' - ' . $this->getEmail();
  313. return $string;
  314. }
  315. /**
  316. * Add changeRequest
  317. *
  318. * @param \AdminBundle\Entity\ChangeRequests $changeRequest
  319. *
  320. * @return User
  321. */
  322. public function addChangeRequest(\AdminBundle\Entity\ChangeRequests $changeRequest)
  323. {
  324. $this->changeRequests[] = $changeRequest;
  325. return $this;
  326. }
  327. /**
  328. * Remove changeRequest
  329. *
  330. * @param \AdminBundle\Entity\ChangeRequests $changeRequest
  331. */
  332. public function removeChangeRequest(\AdminBundle\Entity\ChangeRequests $changeRequest)
  333. {
  334. $this->changeRequests->removeElement($changeRequest);
  335. }
  336. /**
  337. * Get changeRequests
  338. *
  339. * @return \Doctrine\Common\Collections\Collection
  340. */
  341. public function getChangeRequests()
  342. {
  343. return $this->changeRequests;
  344. }
  345. /**
  346. * Add clientChangeRequest
  347. *
  348. * @param \AdminBundle\Entity\ClientChangeRequest $clientChangeRequests
  349. *
  350. * @return User
  351. */
  352. public function addClientChangeRequest(\AdminBundle\Entity\ClientChangeRequest $clientChangeRequest)
  353. {
  354. $this->clientChangeRequests[] = $clientChangeRequest;
  355. return $this;
  356. }
  357. /**
  358. * Remove clientChangeRequest
  359. *
  360. * @param \AdminBundle\Entity\ClientChangeRequests $clientChangeRequest
  361. */
  362. public function removeClientChangeRequest(\AdminBundle\Entity\ClientChangeRequest $clientChangeRequest)
  363. {
  364. $this->clientChangeRequests->removeElement($clientChangeRequest);
  365. }
  366. /**
  367. * Get clientChangeRequest
  368. *
  369. * @return \Doctrine\Common\Collections\Collection
  370. */
  371. public function getClientChangeRequests()
  372. {
  373. return $this->clientChangeRequest;
  374. }
  375. /**
  376. * @return string
  377. */
  378. public function getAllowIpsToLogin()
  379. {
  380. return $this->allowIpsToLogin;
  381. }
  382. /**
  383. * @param string $allowIpsToLogin
  384. */
  385. public function setAllowIpsToLogin($allowIpsToLogin)
  386. {
  387. $this->allowIpsToLogin = $allowIpsToLogin;
  388. }
  389. public function getDeviceId() {
  390. return $this->deviceId;
  391. }
  392. public function setDeviceId($deviceId) {
  393. $this->deviceId = $deviceId;
  394. }
  395. public function getDeviceUid()
  396. {
  397. return $this->deviceUid;
  398. }
  399. public function getDeviceXid()
  400. {
  401. return $this->deviceXid;
  402. }
  403. public function getDeviceApplicationName()
  404. {
  405. return $this->deviceApplicationName;
  406. }
  407. public function getDeviceApplicationVersion()
  408. {
  409. return $this->deviceApplicationVersion;
  410. }
  411. public function getDeviceModel()
  412. {
  413. return $this->deviceModel;
  414. }
  415. public function getDeviceProduct()
  416. {
  417. return $this->deviceProduct;
  418. }
  419. public function getDeviceType()
  420. {
  421. return $this->deviceType;
  422. }
  423. public function getDeviceVendor()
  424. {
  425. return $this->deviceVendor;
  426. }
  427. public function getDeviceOsApiVersion()
  428. {
  429. return $this->deviceOsApiVersion;
  430. }
  431. public function getDeviceOsType()
  432. {
  433. return $this->deviceOsType;
  434. }
  435. public function getDeviceOsVersion()
  436. {
  437. return $this->deviceOsVersion;
  438. }
  439. public function getDeviceSandbox()
  440. {
  441. return $this->deviceSandbox;
  442. }
  443. public function getDeviceScreenDensity()
  444. {
  445. return $this->deviceScreenDensity;
  446. }
  447. public function getDeviceScreenHeight()
  448. {
  449. return $this->deviceScreenHeight;
  450. }
  451. public function getDeviceScreenOrientation()
  452. {
  453. return $this->deviceScreenOrientation;
  454. }
  455. public function getDeviceScreenWidth()
  456. {
  457. return $this->deviceScreenWidth;
  458. }
  459. public function getDeviceTimeZone()
  460. {
  461. return $this->deviceTimeZone;
  462. }
  463. public function getDeviceDatetime()
  464. {
  465. return $this->deviceDatetime;
  466. }
  467. public function setDeviceUid($deviceUid)
  468. {
  469. $this->deviceUid = $deviceUid;
  470. }
  471. public function setDeviceXid($deviceXid)
  472. {
  473. $this->deviceXid = $deviceXid;
  474. }
  475. public function setDeviceApplicationName($deviceApplicationName)
  476. {
  477. $this->deviceApplicationName = $deviceApplicationName;
  478. }
  479. public function setDeviceApplicationVersion($deviceApplicationVersion)
  480. {
  481. $this->deviceApplicationVersion = $deviceApplicationVersion;
  482. }
  483. public function setDeviceModel($deviceModel)
  484. {
  485. $this->deviceModel = $deviceModel;
  486. }
  487. public function setDeviceProduct($deviceProduct)
  488. {
  489. $this->deviceProduct = $deviceProduct;
  490. }
  491. public function setDeviceType($deviceType)
  492. {
  493. $this->deviceType = $deviceType;
  494. }
  495. public function setDeviceVendor($deviceVendor)
  496. {
  497. $this->deviceVendor = $deviceVendor;
  498. }
  499. public function setDeviceOsApiVersion($deviceOsApiVersion)
  500. {
  501. $this->deviceOsApiVersion = $deviceOsApiVersion;
  502. }
  503. public function setDeviceOsType($deviceOsType)
  504. {
  505. $this->deviceOsType = $deviceOsType;
  506. }
  507. public function setDeviceOsVersion($deviceOsVersion)
  508. {
  509. $this->deviceOsVersion = $deviceOsVersion;
  510. }
  511. public function setDeviceSandbox($device_sandbox)
  512. {
  513. $this->deviceSandbox = $device_sandbox;
  514. }
  515. public function setDeviceScreenDensity($device_screen_density)
  516. {
  517. $this->deviceScreenDensity = $device_screen_density;
  518. }
  519. public function setDeviceScreenHeight($deviceScreenHeight)
  520. {
  521. $this->deviceScreenHeight = $deviceScreenHeight;
  522. }
  523. public function setDeviceScreenOrientation($deviceScreenOrientation)
  524. {
  525. $this->deviceScreenOrientation = $deviceScreenOrientation;
  526. }
  527. public function setDeviceScreenWidth($deviceScreenWidth)
  528. {
  529. $this->deviceScreenWidth = $deviceScreenWidth;
  530. }
  531. public function setDeviceTimeZone($deviceTimeZone)
  532. {
  533. $this->deviceTimeZone = $deviceTimeZone;
  534. }
  535. public function setDeviceDatetime($deviceDatetime)
  536. {
  537. $this->deviceDatetime = $deviceDatetime;
  538. }
  539. /**
  540. * @return string
  541. */
  542. public function getAppleUid(): string
  543. {
  544. return $this->appleUid;
  545. }
  546. /**
  547. * @param string $appleUid
  548. */
  549. public function setAppleUid(string $appleUid)
  550. {
  551. $this->appleUid = $appleUid;
  552. }
  553. /**
  554. * @return int
  555. */
  556. public function getReviewRating()
  557. {
  558. return $this->reviewRating;
  559. }
  560. /**
  561. * @param float $reviewRating
  562. *
  563. * @return User
  564. */
  565. public function setReviewRating($reviewRating)
  566. {
  567. $this->reviewRating = $reviewRating;
  568. return $this;
  569. }
  570. /**
  571. * @return string
  572. */
  573. public function getBraintreeCustomer()
  574. {
  575. return $this->braintreeCustomer;
  576. }
  577. /**
  578. * @param string $braintreeCustomer
  579. */
  580. public function setBraintreeCustomer($braintreeCustomer)
  581. {
  582. $this->braintreeCustomer = $braintreeCustomer;
  583. }
  584. /**
  585. * @return string
  586. */
  587. public function getStripeCustomer()
  588. {
  589. return $this->stripeCustomer;
  590. }
  591. /**
  592. * @param string $stripeCustomer
  593. */
  594. public function setStripeCustomer($stripeCustomer)
  595. {
  596. $this->stripeCustomer = $stripeCustomer;
  597. }
  598. /**
  599. * @return ArrayCollection
  600. */
  601. public function getClientBookings()
  602. {
  603. return $this->clientBookings;
  604. }
  605. /**
  606. * @param Booking $bookings
  607. */
  608. public function setBookings(ArrayCollection $clientBookings)
  609. {
  610. $this->clientBookings = $clientBookings;
  611. return $this;
  612. }
  613. /**
  614. * Get userHistory
  615. *
  616. * @return Array
  617. */
  618. public static function getUserHistory()
  619. {
  620. return [];
  621. }
  622. /**
  623. * Old FosUser columns - methods -- start
  624. */
  625. public function setTwoStepVerificationCode($twoStepVerificationCode) {
  626. $this->twoStepVerificationCode = $twoStepVerificationCode;
  627. return $this;
  628. }
  629. public function getTwoStepVerificationCode() {
  630. return $this->twoStepVerificationCode;
  631. }
  632. public function setBiography($biography) {
  633. $this->biography = $biography;
  634. return $this;
  635. }
  636. public function getBiography() {
  637. return $this->biography;
  638. }
  639. public function setDateOfBirth($dateOfBirth) {
  640. $this->dateOfBirth = $dateOfBirth;
  641. return $this;
  642. }
  643. public function getDateOfBirth() {
  644. return $this->dateOfBirth;
  645. }
  646. public function setFacebookData($facebookData) {
  647. $this->facebookData = $facebookData;
  648. return $this;
  649. }
  650. public function getFacebookData() {
  651. return $this->facebookData;
  652. }
  653. public function setFacebookName($facebookName) {
  654. $this->facebookName = $facebookName;
  655. return $this;
  656. }
  657. public function getFacebookName() {
  658. return $this->facebookName;
  659. }
  660. public function setFacebookUid($facebookUid) {
  661. $this->facebookUid = $facebookUid;
  662. return $this;
  663. }
  664. public function getFacebookUid() {
  665. return $this->facebookUid;
  666. }
  667. public function setFirstname($firstname) {
  668. $this->firstname = $firstname;
  669. return $this;
  670. }
  671. public function getFirstname() {
  672. return $this->firstname;
  673. }
  674. public function setGender($gender) {
  675. $this->gender = $gender;
  676. return $this;
  677. }
  678. public function getGender() {
  679. return $this->gender;
  680. }
  681. public function setGplusData($gplusData) {
  682. $this->gplusData = $gplusData;
  683. return $this;
  684. }
  685. public function getGplusData() {
  686. return $this->gplusData;
  687. }
  688. public function setGplusName($gplusName) {
  689. $this->gplusName = $gplusName;
  690. return $this;
  691. }
  692. public function getGplusName() {
  693. return $this->gplusName;
  694. }
  695. public function setGplusUid($gplusUid) {
  696. $this->gplusUid = $gplusUid;
  697. return $this;
  698. }
  699. public function getGplusUid() {
  700. return $this->gplusUid;
  701. }
  702. public function setLastname($lastname) {
  703. $this->lastname = $lastname;
  704. return $this;
  705. }
  706. public function getLastname() {
  707. return $this->lastname;
  708. }
  709. public function setLocale($locale) {
  710. $this->locale = $locale;
  711. return $this;
  712. }
  713. public function getLocale() {
  714. return $this->locale;
  715. }
  716. public function setPhone($phone) {
  717. $this->phone = $phone;
  718. return $this;
  719. }
  720. public function getPhone() {
  721. return $this->phone;
  722. }
  723. public function setTimezone($timezone) {
  724. $this->timezone = $timezone;
  725. return $this;
  726. }
  727. public function getTimezone() {
  728. return $this->timezone;
  729. }
  730. public function setTwitterData($twitterData) {
  731. $this->twitterData = $twitterData;
  732. return $this;
  733. }
  734. public function getTwitterData() {
  735. return $this->twitterData;
  736. }
  737. public function setTwitterName($twitterName) {
  738. $this->twitterName = $twitterName;
  739. return $this;
  740. }
  741. public function getTwitterName() {
  742. return $this->twitterName;
  743. }
  744. public function setTwitterUid($twitterUid) {
  745. $this->twitterUid = $twitterUid;
  746. return $this;
  747. }
  748. public function getTwitterUid() {
  749. return $this->twitterUid;
  750. }
  751. public function setWebsite($website) {
  752. $this->website = $website;
  753. return $this;
  754. }
  755. public function getWebsite() {
  756. return $this->website;
  757. }
  758. public function setToken($token) {
  759. $this->token = $token;
  760. return $this;
  761. }
  762. public function getToken() {
  763. return $this->token;
  764. }
  765. /**
  766. * Old FosUser columns - methods -- end
  767. */
  768. }