Style tightening
[openemr.git] / entities / User.php
blob643905079410d50b62b094c52fd2eb8ef6816a0d
1 <?php
2 /**
3 * User entity.
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Matthew Vita <matthewvita48@gmail.com>
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2017 Matthew Vita <matthewvita48@gmail.com>
10 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 namespace OpenEMR\Entities;
16 use Doctrine\ORM\Mapping\Entity;
17 use Doctrine\ORM\Mapping\Table;
18 use Doctrine\ORM\Mapping\Column;
19 use Doctrine\ORM\Mapping\Id;
20 use Doctrine\ORM\Mapping\Index;
21 use Doctrine\ORM\Mapping\OneToMany;
22 use Doctrine\ORM\Mapping\GeneratedValue;
24 /**
25 * @Table(name="users")
26 * @Entity(repositoryClass="OpenEMR\Repositories\UserRepository")
28 class User
30 /**
31 * Default constructor.
33 public function __construct()
37 /**
38 * @Column(name="id", type="integer")
39 * @GeneratedValue(strategy="AUTO")
41 private $id;
43 /**
44 * @OneToMany(targetEntity="ONote", mappedBy="user")
46 private $oNotes;
48 /**
49 * @Id
50 * @Column(name="username", type="string")
52 private $username;
54 /**
55 * @Column(name="calendar", type="boolean")
57 private $calendar;
59 /**
60 * @Column(name="irnpool", type="string")
62 private $irnPool;
64 /**
65 * @Column(name="cpoe", type="boolean")
67 private $cpoe;
69 /**
70 * @Column(name="physician_type", type="string")
72 private $physicianType;
74 /**
75 * @Column(name="newcrop_user_role", type="string")
77 private $newCropUserRole;
79 /**
80 * @Column(name="state_license_number", type="string")
82 private $stateLicenseNumber;
84 /**
85 * @Column(name="default_warehouse", type="string")
87 private $defaultWarehouse;
89 /**
90 * @Column(name="pwd_history2", type="text")
92 private $pwdHistory2;
94 /**
95 * @Column(name="pwd_history1", type="text")
97 private $pwdHistory1;
99 /**
100 * @Column(name="pwd_expiration_date", type="string")
102 private $pwdExpirationDate;
105 * @Column(name="abook_type", type="string")
107 private $aBookType;
110 * @Column(name="password", type="text")
112 private $password;
115 * @Column(name="authorized", type="boolean")
117 private $authorized;
120 * @Column(name="info", type="text")
122 private $info;
125 * @Column(name="taxonomy", type="string")
127 private $taxonomy;
130 * @Column(name="cal_ui", type="boolean")
132 private $calUi;
135 * @Column(name="notes", type="text")
137 private $notes;
140 * @Column(name="phonecell", type="string")
142 private $phoneCell;
145 * @Column(name="phonew2", type="string")
147 private $phoneW2;
150 * @Column(name="phonew1", type="string")
152 private $phoneW1;
155 * @Column(name="fax", type="string")
157 private $fax;
160 * @Column(name="phone", type="string")
162 private $phone;
165 * @Column(name="zip2", type="string")
167 private $zip2;
170 * @Column(name="state2", type="string")
172 private $state2;
175 * @Column(name="city2", type="string")
177 private $city2;
180 * @Column(name="streetb2", type="string")
182 private $streetB2;
185 * @Column(name="street2", type="string")
187 private $street2;
190 * @Column(name="zip", type="string")
192 private $zip;
195 * @Column(name="state", type="string")
197 private $state;
200 * @Column(name="city", type="string")
202 private $city;
205 * @Column(name="streetb", type="string")
207 private $streetB;
210 * @Column(name="street", type="string")
212 private $street;
215 * @Column(name="valedictory", type="string")
217 private $valedictory;
220 * @Column(name="organization", type="string")
222 private $organization;
225 * @Column(name="assistant", type="string")
227 private $assistant;
230 * @Column(name="url", type="string")
232 private $url;
235 * @Column(name="email_direct", type="string")
237 private $emailDirect;
240 * @Column(name="email", type="string")
242 private $email;
245 * @Column(name="billname", type="string")
247 private $billName;
250 * @Column(name="specialty", type="string")
252 private $specialty;
255 * @Column(name="title", type="string")
257 private $title;
260 * @Column(name="npi", type="string")
262 private $npi;
265 * @Column(name="active", type="boolean")
267 private $active;
270 * @Column(name="see_auth", type="integer")
272 private $seeAuth;
275 * @Column(name="facility_id", type="integer")
277 private $facilityId;
280 * @Column(name="facility", type="string")
282 private $facility;
285 * @Column(name="upin", type="string")
287 private $upin;
290 * @Column(name="federalDrugId", type="string")
292 private $federalDrugId;
295 * @Column(name="federaltaxid", type="string")
297 private $federalTaxId;
300 * @Column(name="suffix", type="string")
302 private $suffix;
305 * @Column(name="lname", type="string")
307 private $lname;
310 * @Column(name="mname", type="string")
312 private $mname;
315 * @Column(name="fname", type="string")
317 private $fname;
320 * @Column(name="source", type="boolean")
322 private $source;
325 * @Column(name="main_menu_role", type="string")
327 private $mainMenuRole;
330 * @Column(name="weno_prov_id", type="string")
332 private $wenoProvId;
334 public function getId()
336 return $this->id;
339 public function setId($value)
341 $this->id = $value;
344 public function getUsername()
346 return $this->username;
349 public function setUsername($value)
351 $this->username = $value;
354 public function getPassword()
356 return $this->password;
359 public function setPassword($value)
361 $this->password = $value;
364 public function getAuthorized()
366 return $this->authorized;
369 public function setAuthorized($value)
371 $this->authorized = $value;
374 public function getInfo()
376 return $this->info;
379 public function setInfo($value)
381 $this->info = $value;
384 public function getSource()
386 return $this->source;
389 public function setSource($value)
391 $this->source = $value;
394 public function getFname()
396 return $this->fname;
399 public function setFname($value)
401 $this->fname = $value;
404 public function getMname()
406 return $this->mname;
409 public function setMname($value)
411 $this->mname = $value;
414 public function getLname()
416 return $this->lname;
419 public function setLname($value)
421 $this->lname = $value;
424 public function getSuffix()
426 return $this->suffix;
429 public function setSuffix($value)
431 $this->suffix = $value;
434 public function getFederalTaxId()
436 return $this->federalTaxId;
439 public function setFederalTaxId($value)
441 $this->federalTaxId = $value;
444 public function getFederalDrugId()
446 return $this->federalDrugId;
449 public function setFederalDrugId($value)
451 $this->federalDrugId = $value;
454 public function getUpin()
456 return $this->upin;
459 public function setUpin($value)
461 $this->upin = $value;
464 public function getFacility()
466 return $this->facility;
469 public function setFacility($value)
471 $this->facility = $value;
474 public function getFacilityId()
476 return $this->facilityId;
479 public function setFacilityId($value)
481 $this->facilityId = $value;
484 public function getSeeAuth()
486 return $this->seeAuth;
489 public function setSeeAuth($value)
491 $this->seeAuth = $value;
494 public function getActive()
496 return $this->active;
499 public function setActive($value)
501 $this->active = $value;
504 public function getNpi()
506 return $this->npi;
509 public function setNpi($value)
511 $this->npi = $value;
514 public function getTitle()
516 return $this->title;
519 public function setTitle($value)
521 $this->title = $value;
524 public function getSpecialty()
526 return $this->specialty;
529 public function setSpecialty($value)
531 $this->specialty = $value;
534 public function getBillName()
536 return $this->billName;
539 public function setBillName($value)
541 $this->billName = $value;
544 public function getEmail()
546 return $this->email;
549 public function setEmail($value)
551 $this->email = $value;
554 public function getEmailDirect()
556 return $this->emailDirect;
559 public function setEmailDirect($value)
561 $this->emailDirect = $value;
564 public function getUrl()
566 return $this->url;
569 public function setUrl($value)
571 $this->url = $value;
574 public function getAssistant()
576 return $this->assistant;
579 public function setAssistant($value)
581 $this->assistant = $value;
584 public function getOrganization()
586 return $this->organization;
589 public function setOrganization($value)
591 $this->organization = $value;
594 public function getValedictory()
596 return $this->valedictory;
599 public function setValedictory($value)
601 $this->valedictory = $value;
604 public function getStreet()
606 return $this->street;
609 public function setStreet($value)
611 $this->street = $value;
614 public function getStreetB()
616 return $this->streetB;
619 public function setStreetB($value)
621 $this->streetB = $value;
624 public function getCity()
626 return $this->city;
629 public function setCity($value)
631 $this->city = $value;
634 public function getState()
636 return $this->state;
639 public function setState($value)
641 $this->state = $value;
644 public function getZip()
646 return $this->zip;
649 public function setZip($value)
651 $this->zip = $value;
654 public function getStreet2()
656 return $this->street2;
659 public function setStreet2($value)
661 $this->street2 = $value;
664 public function getStreetB2()
666 return $this->streetB2;
669 public function setStreetB2($value)
671 $this->streetB2 = $value;
674 public function getCity2()
676 return $this->city2;
679 public function setCity2($value)
681 $this->city2 = $value;
684 public function getState2()
686 return $this->state2;
689 public function setState2($value)
691 $this->state2 = $value;
694 public function getZip2()
696 return $this->zip2;
699 public function setZip2($value)
701 $this->zip2 = $value;
704 public function getPhone()
706 return $this->phone;
709 public function setPhone($value)
711 $this->phone = $value;
714 public function getFax()
716 return $this->fax;
719 public function setFax($value)
721 $this->fax = $value;
724 public function getPhoneW1()
726 return $this->phoneW1;
729 public function setPhoneW1($value)
731 $this->phoneW1 = $value;
734 public function getPhoneW2()
736 return $this->phoneW2;
739 public function setPhoneW2($value)
741 $this->phoneW2 = $value;
744 public function getPhoneCell()
746 return $this->phoneCell;
749 public function setPhoneCell($value)
751 $this->phoneCell = $value;
754 public function getNotes()
756 return $this->notes;
759 public function setNotes($value)
761 $this->notes = $value;
764 public function getCalUi()
766 return $this->calUi;
769 public function setCalUi($value)
771 $this->calUi = $value;
774 public function getTaxonomy()
776 return $this->taxonomy;
779 public function setTaxonomy($value)
781 $this->taxonomy = $value;
784 public function getCalendar()
786 return $this->calendar;
789 public function setCalendar($value)
791 $this->calendar = $value;
794 public function getaBookType()
796 return $this->aBookType;
799 public function setaBookType($value)
801 $this->aBookType = $value;
804 public function getPwdExpirationDate()
806 return $this->pwdExpirationDate;
809 public function setPwdExpirationDate($value)
811 $this->pwdExpirationDate = $value;
814 public function getPwdHistory1()
816 return $this->pwdHistory1;
819 public function setPwdHistory1($value)
821 $this->pwdHistory1 = $value;
824 public function getPwdHistory2()
826 return $this->pwdHistory2;
829 public function setPwdHistory2($value)
831 $this->pwdHistory2 = $value;
834 public function getDefaultWarehouse()
836 return $this->defaultWarehouse;
839 public function setDefaultWarehouse($value)
841 $this->defaultWarehouse = $value;
844 public function getIrnPool()
846 return $this->irnPool;
849 public function setIrnPool($value)
851 $this->irnPool = $value;
854 public function getStateLicenseNumber()
856 return $this->stateLicenseNumber;
859 public function setStateLicenseNumber($value)
861 $this->stateLicenseNumber = $value;
864 public function getNewCropUserRole()
866 return $this->newCropUserRole;
869 public function setNewCropUserRole($value)
871 $this->newCropUserRole = $value;
874 public function getCpoe()
876 return $this->cpoe;
879 public function setCpoe($value)
881 $this->cpoe = $value;
884 public function getPhysicianType()
886 return $this->physicianType;
889 public function setPhysicianType($value)
891 $this->physicianType = $value;
894 public function getMainMenuRole()
896 return $this->mainMenuRole;
899 public function setMainMenuRole($value)
901 $this->mainMenuRole = $value;
904 public function getWenoProvId()
906 return $this->wenoProvId;
909 public function setWenoProvId($value)
911 $this->wenoProvId = $value;
915 * ToString of the entire object.
917 * @return object as string
919 public function __toString()
921 return "id: '" . $this->getId() . "' " .
922 "username: '" . $this->getUsername() . "' " .
923 "password: '" . $this->getPassword() . "' " .
924 "authorized: '" . $this->getAuthorized() . "' " .
925 "info: '" . $this->getInfo() . "' " .
926 "source: '" . $this->getSource() . "' " .
927 "fname: '" . $this->getFname() . "' " .
928 "mname: '" . $this->getMname() . "' " .
929 "lname: '" . $this->getLname() . "' " .
930 "suffix: '" . $this->getSuffix() . "' " .
931 "federalTaxId: '" . $this->getFederalTaxId() . "' " .
932 "federalDrugId: '" . $this->getFederalDrugId() . "' " .
933 "upin: '" . $this->getUpin() . "' " .
934 "facility: '" . $this->getFacility() . "' " .
935 "facilityId: '" . $this->getFacilityId() . "' " .
936 "seeAuth: '" . $this->getSeeAuth() . "' " .
937 "active: '" . $this->getActive() . "' " .
938 "npi: '" . $this->getNpi() . "' " .
939 "title: '" . $this->getTitle() . "' " .
940 "specialty: '" . $this->getSpecialty() . "' " .
941 "billName: '" . $this->getBillName() . "' " .
942 "email: '" . $this->getEmail() . "' " .
943 "emailDirect: '" . $this->getEmailDirect() . "' " .
944 "url: '" . $this->getUrl() . "' " .
945 "assistant: '" . $this->getAssistant() . "' " .
946 "organization: '" . $this->getOrganization() . "' " .
947 "valedictory: '" . $this->getValedictory() . "' " .
948 "street: '" . $this->getStreet() . "' " .
949 "streetB: '" . $this->getStreetB() . "' " .
950 "city: '" . $this->getCity() . "' " .
951 "state: '" . $this->getState() . "' " .
952 "zip: '" . $this->getZip() . "' " .
953 "street2: '" . $this->getStreet2() . "' " .
954 "streetB2: '" . $this->getStreetB2() . "' " .
955 "city2: '" . $this->getCity2() . "' " .
956 "state2: '" . $this->getState2() . "' " .
957 "zip2: '" . $this->getZip2() . "' " .
958 "phone: '" . $this->getPhone() . "' " .
959 "fax: '" . $this->getFax() . "' " .
960 "phoneW1: '" . $this->getPhoneW1() . "' " .
961 "phoneW2: '" . $this->getPhoneW2() . "' " .
962 "phoneCell: '" . $this->getPhoneCell() . "' " .
963 "notes: '" . $this->getNotes() . "' " .
964 "calUi: '" . $this->getCalUi() . "' " .
965 "taxonomy: '" . $this->getTaxonomy() . "' " .
966 "calendar: '" . $this->getCalendar() . "' " .
967 "aBookType: '" . $this->getaBookType() . "' " .
968 "pwdExpirationDate: '" . $this->getPwdExpirationDate() . "' " .
969 "pwdHistory1: '" . $this->getPwdHistory1() . "' " .
970 "pwdHistory2: '" . $this->getPwdHistory2() . "' " .
971 "defaultWarehouse: '" . $this->getDefaultWarehouse() . "' " .
972 "irnPool: '" . $this->getIrnPool() . "' " .
973 "stateLicenseNumber: '" . $this->getStateLicenseNumber() . "' " .
974 "newCropUserRole: '" . $this->getNewCropUserRole() . "' " .
975 "cpoe: '" . $this->getCpoe() . "' " .
976 "physicianType: '" . $this->getPhysicianType() . "' " .
977 "mainMenuRole: '" . $this->getMainMenuRole() . "' " .
978 "wenoProvId: '" . $this->getWenoProvId() . "' ";
982 * ToSerializedObject of the entire object.
984 * @return object as serialized object.
986 public function toSerializedObject()
988 return get_object_vars($this);