123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?php
- /**
- * Created by PhpStorm.
- * User: robin
- * Date: 7/7/16
- * Time: 4:36 PM
- */
-
- namespace Luticate\Auth\Dbo\Users;
-
- use Luticate\Utils\Dbo\LuDbo;
-
- class LuUsersDbo extends LuDbo
- {
- /**
- * @var $_id int
- */
- protected $_id;
-
- /**
- * @var $_username string
- */
- protected $_username;
-
- /**
- * @var $_password string
- * @nullable
- */
- protected $_password;
-
- /**
- * @var $_salt string
- * @between 10 10
- */
- protected $_salt;
-
- /**
- * @var $_profileId int
- * @nullable
- */
- protected $_profileId;
-
- /**
- * @var $_externalAuth int
- * @nullable
- */
- protected $_externalAuth;
-
- /**
- * @var $_email string
- */
- protected $_email;
-
- /**
- * @var $_firstname string
- * @nullable
- */
- protected $_firstname;
-
- /**
- * @var $_lastname string
- * @nullable
- */
- protected $_lastname;
-
- /**
- * @return int
- */
- public function getId()
- {
- return $this->_id;
- }
-
- /**
- * @param int $id
- */
- public function setId($id)
- {
- $this->_id = $id;
- }
-
- /**
- * @return string
- */
- public function getUsername()
- {
- return $this->_username;
- }
-
- /**
- * @param string $username
- */
- public function setUsername($username)
- {
- $this->_username = $username;
- }
-
- /**
- * @return string
- */
- public function getPassword()
- {
- return $this->_password;
- }
-
- /**
- * @param string $password
- */
- public function setPassword($password)
- {
- $this->_password = $password;
- }
-
- /**
- * @return string
- */
- public function getSalt()
- {
- return $this->_salt;
- }
-
- /**
- * @param string $salt
- */
- public function setSalt($salt)
- {
- $this->_salt = $salt;
- }
-
- /**
- * @return int
- */
- public function getProfileId()
- {
- return $this->_profileId;
- }
-
- /**
- * @param int $profileId
- */
- public function setProfileId($profileId)
- {
- $this->_profileId = $profileId;
- }
-
- /**
- * @return int
- */
- public function getExternalAuth()
- {
- return $this->_externalAuth;
- }
-
- /**
- * @param int $externalAuth
- */
- public function setExternalAuth($externalAuth)
- {
- $this->_externalAuth = $externalAuth;
- }
-
- /**
- * @return string
- */
- public function getEmail()
- {
- return $this->_email;
- }
-
- /**
- * @param string $email
- */
- public function setEmail($email)
- {
- $this->_email = $email;
- }
-
- /**
- * @return string
- */
- public function getFirstname()
- {
- return $this->_firstname;
- }
-
- /**
- * @param string $firstname
- */
- public function setFirstname($firstname)
- {
- $this->_firstname = $firstname;
- }
-
- /**
- * @return string
- */
- public function getLastname()
- {
- return $this->_lastname;
- }
-
- /**
- * @param string $lastname
- */
- public function setLastname($lastname)
- {
- $this->_lastname = $lastname;
- }
-
- /**
- * @return LuUsersLiteDbo
- */
- public function toLite()
- {
- return $this->castAs(LuUsersLiteDbo::class);
- }
- }
|