Advertisement
Guest User

Use

a guest
Apr 7th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.69 KB | None | 0 0
  1. <?php
  2.  
  3. namespace KerawaBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Security\Core\User\UserInterface;
  7.  
  8. /**
  9. * Item
  10. *
  11. * @ORM\Table(name="oc_t_user")
  12. * @ORM\Entity(repositoryClass="KerawaBundle\Repository\UserRepository")
  13. */
  14. class User implements UserInterface, \Serializable
  15. {
  16. /**
  17. * @var int
  18. *
  19. * @ORM\Column(name="pk_i_id", type="integer")
  20. * @ORM\Id
  21. * @ORM\GeneratedValue(strategy="AUTO")
  22. */
  23. private $id;
  24.  
  25. /**
  26. * @var int
  27. *
  28. * @ORM\Column(name="fk_i_directory_category_id", type="integer")
  29. */
  30. private $directory_category_id;
  31.  
  32. /**
  33. * @var datetime
  34. *
  35. * @ORM\Column(name="dt_reg_date", type="datetime")
  36. */
  37. private $reg_date;
  38.  
  39. /**
  40. * @var datetime
  41. *
  42. * @ORM\Column(name="dt_mod_date", type="datetime")
  43. */
  44. private $mod_date;
  45.  
  46. /**
  47. * @var string
  48. *
  49. * @ORM\Column(name="s_name", type="string")
  50. */
  51. private $name;
  52.  
  53. /**
  54. * @var string
  55. *
  56. * @ORM\Column(name="s_username", type="string")
  57. */
  58. private $username;
  59.  
  60. /**
  61. * @var string
  62. *
  63. * @ORM\Column(name="s_password", type="string")
  64. */
  65. private $password;
  66.  
  67. /**
  68. * @var string
  69. *
  70. * @ORM\Column(name="s_secret", type="string")
  71. */
  72. private $secret;
  73.  
  74. /**
  75. * @return string
  76. */
  77. public function getWebsite()
  78. {
  79. return $this->website;
  80. }
  81.  
  82. /**
  83. * @param string $website
  84. */
  85. public function setWebsite($website)
  86. {
  87. $this->website = $website;
  88. }
  89.  
  90. /**
  91. * @var string
  92. *
  93. * @ORM\Column(name="s_email", type="string")
  94. */
  95. private $email;
  96.  
  97. /**
  98. * @var string
  99. *
  100. * @ORM\Column(name="s_website", type="string")
  101. */
  102. private $website;
  103.  
  104. /**
  105. * @var string
  106. *
  107. * @ORM\Column(name="s_phone_land", type="string")
  108. */
  109. private $phoneland;
  110.  
  111. /**
  112. * @var string
  113. *
  114. * @ORM\Column(name="s_phone_mobile", type="string", length=255)
  115. */
  116. private $phone;
  117.  
  118. /**
  119. * @var boolean
  120. *
  121. * @ORM\Column(name="b_enabled", type="boolean")
  122. */
  123. private $enabled;
  124.  
  125. /**
  126. * @var boolean
  127. *
  128. * @ORM\Column(name="b_active", type="boolean")
  129. */
  130. private $active;
  131.  
  132. /**
  133. * @var string
  134. *
  135. * @ORM\Column(name="s_pass_code", type="string")
  136. */
  137. private $passcode;
  138.  
  139. /**
  140. * @var datetime
  141. *
  142. * @ORM\Column(name="s_pass_date", type="datetime")
  143. */
  144. private $passdate;
  145.  
  146. /**
  147. * @var string
  148. *
  149. * @ORM\Column(name="s_pass_ip", type="string")
  150. */
  151. private $passip;
  152.  
  153. /**
  154. * @var string
  155. *
  156. * @ORM\Column(name="fk_c_country_code", type="string")
  157. */
  158. private $country_code;
  159.  
  160. /**
  161. * @var string
  162. *
  163. * @ORM\Column(name="s_country", type="string")
  164. */
  165. private $country;
  166.  
  167. /**
  168. * @var string
  169. *
  170. * @ORM\Column(name="s_address", type="string")
  171. */
  172. private $address;
  173.  
  174. /**
  175. * @var string
  176. *
  177. * @ORM\Column(name="s_zip", type="string")
  178. */
  179. private $zip;
  180.  
  181. /**
  182. * @var int
  183. *
  184. * @ORM\Column(name="fk_i_region_id", type="integer")
  185. */
  186. private $region_id;
  187.  
  188. /**
  189. * @var string
  190. *
  191. * @ORM\Column(name="s_region", type="string")
  192. */
  193. private $region_name;
  194.  
  195. /**
  196. * @var int
  197. *
  198. * @ORM\Column(name="fk_i_city_id", type="integer")
  199. */
  200. private $city_id;
  201.  
  202. /**
  203. * @var string
  204. *
  205. * @ORM\Column(name="s_city", type="string")
  206. */
  207. private $city_name;
  208.  
  209. /**
  210. * @var boolean
  211. *
  212. * @ORM\Column(name="b_company", type="boolean")
  213. */
  214. private $company;
  215.  
  216. /**
  217. * @var int
  218. *
  219. * @ORM\Column(name="i_items", type="integer")
  220. */
  221. private $items;
  222.  
  223. /**
  224. * @var int
  225. *
  226. * @ORM\Column(name="i_comments", type="integer")
  227. */
  228. private $comments;
  229.  
  230. /**
  231. * @return int
  232. */
  233. public function getComments()
  234. {
  235. return $this->comments;
  236. }
  237.  
  238. /**
  239. * @param int $comments
  240. */
  241. public function setComments($comments)
  242. {
  243. $this->comments = $comments;
  244. }
  245.  
  246. /**
  247. * @return datetime
  248. */
  249. public function getAccessDate()
  250. {
  251. return $this->access_date;
  252. }
  253.  
  254. /**
  255. * @param datetime $access_date
  256. */
  257. public function setAccessDate($access_date)
  258. {
  259. $this->access_date = $access_date;
  260. }
  261.  
  262. /**
  263. * @return string
  264. */
  265. public function getAccessIp()
  266. {
  267. return $this->access_ip;
  268. }
  269.  
  270. /**
  271. * @param string $access_ip
  272. */
  273. public function setAccessIp($access_ip)
  274. {
  275. $this->access_ip = $access_ip;
  276. }
  277.  
  278. /**
  279. * @var datetime
  280. *
  281. * @ORM\Column(name="dt_access_date", type="datetime")
  282. */
  283. private $access_date;
  284.  
  285. /**
  286. * @var string
  287. *
  288. * @ORM\Column(name="s_access_ip", type="string")
  289. */
  290. private $access_ip;
  291.  
  292. /**
  293. * Get id
  294. *
  295. * @return int
  296. */
  297.  
  298. public function __construct()
  299. {
  300. $this->active = true;
  301. }
  302.  
  303. public function getId()
  304. {
  305. return $this->id;
  306. }
  307.  
  308. public function setId($id)
  309. {
  310. $this->id = $id;
  311. }
  312.  
  313. /**
  314. * Set phone
  315. *
  316. * @param string $phone
  317. *
  318. * @return User
  319. */
  320. public function setPhone($phone)
  321. {
  322. $this->phone = $phone;
  323. }
  324.  
  325. /**
  326. * Get phone
  327. *
  328. * @return string
  329. */
  330. public function getPhone()
  331. {
  332. return $this->phone;
  333. }
  334.  
  335. /**
  336. * @param string $name
  337. */
  338. public function setName($name)
  339. {
  340. $this->name = $name;
  341. }
  342.  
  343. /**
  344. * @param string $username
  345. */
  346. public function setUsername($username)
  347. {
  348. $this->username = $username;
  349. }
  350.  
  351. public function getName()
  352. {
  353. return $this->name;
  354. }
  355.  
  356. /**
  357. * @return datetime
  358. */
  359. public function getReg_date()
  360. {
  361. return $this->reg_date;
  362. }
  363.  
  364. /**
  365. * @param datetime $reg_date
  366. */
  367. public function setReg_date($reg_date)
  368. {
  369. $this->reg_date = $reg_date;
  370. }
  371.  
  372. /**
  373. * @return datetime
  374. */
  375. public function getModDate()
  376. {
  377. return $this->mod_date;
  378. }
  379.  
  380. /**
  381. * @param datetime $mod_date
  382. */
  383. public function setModDate($mod_date)
  384. {
  385. $this->mod_date = $mod_date;
  386. }
  387.  
  388. /**
  389. * @return string
  390. */
  391. public function getSecret()
  392. {
  393. return $this->secret;
  394. }
  395.  
  396. /**
  397. * @param string $secret
  398. */
  399. public function setSecret($secret)
  400. {
  401. $this->secret = $secret;
  402. }
  403.  
  404. /**
  405. * @return string
  406. */
  407. public function getPhoneland()
  408. {
  409. return $this->phoneland;
  410. }
  411.  
  412. /**
  413. * @param string $phoneland
  414. */
  415. public function setPhoneland($phoneland)
  416. {
  417. $this->phoneland = $phoneland;
  418. }
  419.  
  420. /**
  421. * @return bool
  422. */
  423. public function isEnabled()
  424. {
  425. return $this->enabled;
  426. }
  427.  
  428. /**
  429. * @param bool $enabled
  430. */
  431. public function setEnabled($enabled)
  432. {
  433. $this->enabled = $enabled;
  434. }
  435.  
  436. /**
  437. * @return bool
  438. */
  439. public function isActive()
  440. {
  441. return $this->active;
  442. }
  443.  
  444. /**
  445. * @param bool $active
  446. */
  447. public function setActive($active)
  448. {
  449. $this->active = $active;
  450. }
  451.  
  452. /**
  453. * @return string
  454. */
  455. public function getPasscode()
  456. {
  457. return $this->passcode;
  458. }
  459.  
  460. /**
  461. * @param string $passcode
  462. */
  463. public function setPasscode($passcode)
  464. {
  465. $this->passcode = $passcode;
  466. }
  467.  
  468. /**
  469. * @return datetime
  470. */
  471. public function getPassdate()
  472. {
  473. return $this->passdate;
  474. }
  475.  
  476. /**
  477. * @param datetime $passdate
  478. */
  479. public function setPassdate($passdate)
  480. {
  481. $this->passdate = $passdate;
  482. }
  483.  
  484. /**
  485. * @return string
  486. */
  487. public function getPassip()
  488. {
  489. return $this->passip;
  490. }
  491.  
  492. /**
  493. * @param string $passip
  494. */
  495. public function setPassip($passip)
  496. {
  497. $this->passip = $passip;
  498. }
  499.  
  500. /**
  501. * @return string
  502. */
  503. public function getCountryCode()
  504. {
  505. return $this->country_code;
  506. }
  507.  
  508. /**
  509. * @param string $country_code
  510. */
  511. public function setCountryCode($country_code)
  512. {
  513. $this->country_code = $country_code;
  514. }
  515.  
  516. /**
  517. * @return string
  518. */
  519. public function getCountry()
  520. {
  521. return $this->country;
  522. }
  523.  
  524. /**
  525. * @param string $country
  526. */
  527. public function setCountry($country)
  528. {
  529. $this->country = $country;
  530. }
  531.  
  532. /**
  533. * @return string
  534. */
  535. public function getAddress()
  536. {
  537. return $this->address;
  538. }
  539.  
  540. /**
  541. * @param string $address
  542. */
  543. public function setAddress($address)
  544. {
  545. $this->address = $address;
  546. }
  547.  
  548. /**
  549. * @return string
  550. */
  551. public function getZip()
  552. {
  553. return $this->zip;
  554. }
  555.  
  556. /**
  557. * @param string $zip
  558. */
  559. public function setZip($zip)
  560. {
  561. $this->zip = $zip;
  562. }
  563.  
  564. /**
  565. * @return int
  566. */
  567. public function getRegionId()
  568. {
  569. return $this->region_id;
  570. }
  571.  
  572. /**
  573. * @param int $region_id
  574. */
  575. public function setRegionId($region_id)
  576. {
  577. $this->region_id = $region_id;
  578. }
  579.  
  580. /**
  581. * @return string
  582. */
  583. public function getRegionName()
  584. {
  585. return $this->region_name;
  586. }
  587.  
  588. /**
  589. * @param string $region_name
  590. */
  591. public function setRegionName($region_name)
  592. {
  593. $this->region_name = $region_name;
  594. }
  595. /**
  596. * @return string
  597. */
  598. public function getRegion_name()
  599. {
  600. return $this->region_name;
  601. }
  602.  
  603. /**
  604. * @param string $region_name
  605. */
  606. public function setRegion_name($region_name)
  607. {
  608. $this->region_name = $region_name;
  609. }
  610.  
  611. /**
  612. * @return int
  613. */
  614. public function getCityId()
  615. {
  616. return $this->city_id;
  617. }
  618.  
  619. /**
  620. * @param int $city_id
  621. */
  622. public function setCityId($city_id)
  623. {
  624. $this->city_id = $city_id;
  625. }
  626.  
  627. /**
  628. * @return string
  629. */
  630. public function getCityName()
  631. {
  632. return $this->city_name;
  633. }
  634.  
  635. /**
  636. * @param string $city_name
  637. */
  638. public function setCityName($city_name)
  639. {
  640. $this->city_name = $city_name;
  641. }
  642.  
  643. /**
  644. * @return string
  645. */
  646. public function getCity_name()
  647. {
  648. return $this->city_name;
  649. }
  650.  
  651. /**
  652. * @param string $city_name
  653. */
  654. public function setCity_name($city_name)
  655. {
  656. $this->city_name = $city_name;
  657. }
  658.  
  659. /**
  660. * @return bool
  661. */
  662. public function isCompany()
  663. {
  664. return $this->company;
  665. }
  666.  
  667. /**
  668. * @param bool $company
  669. */
  670. public function setCompany($company)
  671. {
  672. $this->company = $company;
  673. }
  674.  
  675. /**
  676. * @return int
  677. */
  678. public function getItems()
  679. {
  680. return $this->items;
  681. }
  682.  
  683. /**
  684. * @param int $items
  685. */
  686. public function setItems($items)
  687. {
  688. $this->items = $items;
  689. }
  690.  
  691. /**
  692. * @return string
  693. */
  694. public function getEmail()
  695. {
  696. return $this->email;
  697. }
  698.  
  699. /**
  700. * @param string $email
  701. */
  702. public function setEmail($email)
  703. {
  704. $this->email = $email;
  705. }
  706.  
  707. public function getRoles()
  708. {
  709. $role = array('ROLE_USER');
  710. return $role;
  711.  
  712. }
  713.  
  714. public function getPassword()
  715. {
  716. return $this->password;
  717. }
  718.  
  719. public function setPassword($password){
  720. $this->password = $password;
  721. }
  722.  
  723. public function getSalt()
  724. {
  725. return null;
  726. }
  727.  
  728. public function getUsername()
  729. {
  730. return $this->username;
  731. }
  732.  
  733.  
  734. /**
  735. * @return int
  736. */
  737. public function getDirectoryCategoryId()
  738. {
  739. return $this->directory_category_id;
  740. }
  741.  
  742. /**
  743. * @param int $directory_category_id
  744. */
  745. public function setDirectoryCategoryId($directory_category_id)
  746. {
  747. $this->directory_category_id = $directory_category_id;
  748. }
  749.  
  750. public function eraseCredentials()
  751. {
  752.  
  753. }
  754.  
  755. public function serialize()
  756. {
  757. return serialize(array(
  758. $this->id,
  759. $this->username,
  760. $this->password,
  761. // see section on salt below
  762. // $this->salt,
  763. ));
  764. }
  765.  
  766. public function unserialize($serialized)
  767. {
  768. list (
  769. $this->id,
  770. $this->username,
  771. $this->password,
  772. // see section on salt below
  773. // $this->salt
  774. ) = unserialize($serialized);
  775. }
  776.  
  777. /**
  778. * Get enabled
  779. *
  780. * @return boolean
  781. */
  782. public function getEnabled()
  783. {
  784. return $this->enabled;
  785. }
  786.  
  787. /**
  788. * Get active
  789. *
  790. * @return boolean
  791. */
  792. public function getActive()
  793. {
  794. return $this->active;
  795. }
  796.  
  797. /**
  798. * Get company
  799. *
  800. * @return boolean
  801. */
  802. public function getCompany()
  803. {
  804. return $this->company;
  805. }
  806. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement