Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace KerawaBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Security\Core\User\UserInterface;
- /**
- * Item
- *
- * @ORM\Table(name="oc_t_user")
- * @ORM\Entity(repositoryClass="KerawaBundle\Repository\UserRepository")
- */
- class User implements UserInterface, \Serializable
- {
- /**
- * @var int
- *
- * @ORM\Column(name="pk_i_id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var int
- *
- * @ORM\Column(name="fk_i_directory_category_id", type="integer")
- */
- private $directory_category_id;
- /**
- * @var datetime
- *
- * @ORM\Column(name="dt_reg_date", type="datetime")
- */
- private $reg_date;
- /**
- * @var datetime
- *
- * @ORM\Column(name="dt_mod_date", type="datetime")
- */
- private $mod_date;
- /**
- * @var string
- *
- * @ORM\Column(name="s_name", type="string")
- */
- private $name;
- /**
- * @var string
- *
- * @ORM\Column(name="s_username", type="string")
- */
- private $username;
- /**
- * @var string
- *
- * @ORM\Column(name="s_password", type="string")
- */
- private $password;
- /**
- * @var string
- *
- * @ORM\Column(name="s_secret", type="string")
- */
- private $secret;
- /**
- * @return string
- */
- public function getWebsite()
- {
- return $this->website;
- }
- /**
- * @param string $website
- */
- public function setWebsite($website)
- {
- $this->website = $website;
- }
- /**
- * @var string
- *
- * @ORM\Column(name="s_email", type="string")
- */
- private $email;
- /**
- * @var string
- *
- * @ORM\Column(name="s_website", type="string")
- */
- private $website;
- /**
- * @var string
- *
- * @ORM\Column(name="s_phone_land", type="string")
- */
- private $phoneland;
- /**
- * @var string
- *
- * @ORM\Column(name="s_phone_mobile", type="string", length=255)
- */
- private $phone;
- /**
- * @var boolean
- *
- * @ORM\Column(name="b_enabled", type="boolean")
- */
- private $enabled;
- /**
- * @var boolean
- *
- * @ORM\Column(name="b_active", type="boolean")
- */
- private $active;
- /**
- * @var string
- *
- * @ORM\Column(name="s_pass_code", type="string")
- */
- private $passcode;
- /**
- * @var datetime
- *
- * @ORM\Column(name="s_pass_date", type="datetime")
- */
- private $passdate;
- /**
- * @var string
- *
- * @ORM\Column(name="s_pass_ip", type="string")
- */
- private $passip;
- /**
- * @var string
- *
- * @ORM\Column(name="fk_c_country_code", type="string")
- */
- private $country_code;
- /**
- * @var string
- *
- * @ORM\Column(name="s_country", type="string")
- */
- private $country;
- /**
- * @var string
- *
- * @ORM\Column(name="s_address", type="string")
- */
- private $address;
- /**
- * @var string
- *
- * @ORM\Column(name="s_zip", type="string")
- */
- private $zip;
- /**
- * @var int
- *
- * @ORM\Column(name="fk_i_region_id", type="integer")
- */
- private $region_id;
- /**
- * @var string
- *
- * @ORM\Column(name="s_region", type="string")
- */
- private $region_name;
- /**
- * @var int
- *
- * @ORM\Column(name="fk_i_city_id", type="integer")
- */
- private $city_id;
- /**
- * @var string
- *
- * @ORM\Column(name="s_city", type="string")
- */
- private $city_name;
- /**
- * @var boolean
- *
- * @ORM\Column(name="b_company", type="boolean")
- */
- private $company;
- /**
- * @var int
- *
- * @ORM\Column(name="i_items", type="integer")
- */
- private $items;
- /**
- * @var int
- *
- * @ORM\Column(name="i_comments", type="integer")
- */
- private $comments;
- /**
- * @return int
- */
- public function getComments()
- {
- return $this->comments;
- }
- /**
- * @param int $comments
- */
- public function setComments($comments)
- {
- $this->comments = $comments;
- }
- /**
- * @return datetime
- */
- public function getAccessDate()
- {
- return $this->access_date;
- }
- /**
- * @param datetime $access_date
- */
- public function setAccessDate($access_date)
- {
- $this->access_date = $access_date;
- }
- /**
- * @return string
- */
- public function getAccessIp()
- {
- return $this->access_ip;
- }
- /**
- * @param string $access_ip
- */
- public function setAccessIp($access_ip)
- {
- $this->access_ip = $access_ip;
- }
- /**
- * @var datetime
- *
- * @ORM\Column(name="dt_access_date", type="datetime")
- */
- private $access_date;
- /**
- * @var string
- *
- * @ORM\Column(name="s_access_ip", type="string")
- */
- private $access_ip;
- /**
- * Get id
- *
- * @return int
- */
- public function __construct()
- {
- $this->active = true;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setId($id)
- {
- $this->id = $id;
- }
- /**
- * Set phone
- *
- * @param string $phone
- *
- * @return User
- */
- public function setPhone($phone)
- {
- $this->phone = $phone;
- }
- /**
- * Get phone
- *
- * @return string
- */
- public function getPhone()
- {
- return $this->phone;
- }
- /**
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @param string $username
- */
- public function setUsername($username)
- {
- $this->username = $username;
- }
- public function getName()
- {
- return $this->name;
- }
- /**
- * @return datetime
- */
- public function getReg_date()
- {
- return $this->reg_date;
- }
- /**
- * @param datetime $reg_date
- */
- public function setReg_date($reg_date)
- {
- $this->reg_date = $reg_date;
- }
- /**
- * @return datetime
- */
- public function getModDate()
- {
- return $this->mod_date;
- }
- /**
- * @param datetime $mod_date
- */
- public function setModDate($mod_date)
- {
- $this->mod_date = $mod_date;
- }
- /**
- * @return string
- */
- public function getSecret()
- {
- return $this->secret;
- }
- /**
- * @param string $secret
- */
- public function setSecret($secret)
- {
- $this->secret = $secret;
- }
- /**
- * @return string
- */
- public function getPhoneland()
- {
- return $this->phoneland;
- }
- /**
- * @param string $phoneland
- */
- public function setPhoneland($phoneland)
- {
- $this->phoneland = $phoneland;
- }
- /**
- * @return bool
- */
- public function isEnabled()
- {
- return $this->enabled;
- }
- /**
- * @param bool $enabled
- */
- public function setEnabled($enabled)
- {
- $this->enabled = $enabled;
- }
- /**
- * @return bool
- */
- public function isActive()
- {
- return $this->active;
- }
- /**
- * @param bool $active
- */
- public function setActive($active)
- {
- $this->active = $active;
- }
- /**
- * @return string
- */
- public function getPasscode()
- {
- return $this->passcode;
- }
- /**
- * @param string $passcode
- */
- public function setPasscode($passcode)
- {
- $this->passcode = $passcode;
- }
- /**
- * @return datetime
- */
- public function getPassdate()
- {
- return $this->passdate;
- }
- /**
- * @param datetime $passdate
- */
- public function setPassdate($passdate)
- {
- $this->passdate = $passdate;
- }
- /**
- * @return string
- */
- public function getPassip()
- {
- return $this->passip;
- }
- /**
- * @param string $passip
- */
- public function setPassip($passip)
- {
- $this->passip = $passip;
- }
- /**
- * @return string
- */
- public function getCountryCode()
- {
- return $this->country_code;
- }
- /**
- * @param string $country_code
- */
- public function setCountryCode($country_code)
- {
- $this->country_code = $country_code;
- }
- /**
- * @return string
- */
- public function getCountry()
- {
- return $this->country;
- }
- /**
- * @param string $country
- */
- public function setCountry($country)
- {
- $this->country = $country;
- }
- /**
- * @return string
- */
- public function getAddress()
- {
- return $this->address;
- }
- /**
- * @param string $address
- */
- public function setAddress($address)
- {
- $this->address = $address;
- }
- /**
- * @return string
- */
- public function getZip()
- {
- return $this->zip;
- }
- /**
- * @param string $zip
- */
- public function setZip($zip)
- {
- $this->zip = $zip;
- }
- /**
- * @return int
- */
- public function getRegionId()
- {
- return $this->region_id;
- }
- /**
- * @param int $region_id
- */
- public function setRegionId($region_id)
- {
- $this->region_id = $region_id;
- }
- /**
- * @return string
- */
- public function getRegionName()
- {
- return $this->region_name;
- }
- /**
- * @param string $region_name
- */
- public function setRegionName($region_name)
- {
- $this->region_name = $region_name;
- }
- /**
- * @return string
- */
- public function getRegion_name()
- {
- return $this->region_name;
- }
- /**
- * @param string $region_name
- */
- public function setRegion_name($region_name)
- {
- $this->region_name = $region_name;
- }
- /**
- * @return int
- */
- public function getCityId()
- {
- return $this->city_id;
- }
- /**
- * @param int $city_id
- */
- public function setCityId($city_id)
- {
- $this->city_id = $city_id;
- }
- /**
- * @return string
- */
- public function getCityName()
- {
- return $this->city_name;
- }
- /**
- * @param string $city_name
- */
- public function setCityName($city_name)
- {
- $this->city_name = $city_name;
- }
- /**
- * @return string
- */
- public function getCity_name()
- {
- return $this->city_name;
- }
- /**
- * @param string $city_name
- */
- public function setCity_name($city_name)
- {
- $this->city_name = $city_name;
- }
- /**
- * @return bool
- */
- public function isCompany()
- {
- return $this->company;
- }
- /**
- * @param bool $company
- */
- public function setCompany($company)
- {
- $this->company = $company;
- }
- /**
- * @return int
- */
- public function getItems()
- {
- return $this->items;
- }
- /**
- * @param int $items
- */
- public function setItems($items)
- {
- $this->items = $items;
- }
- /**
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
- /**
- * @param string $email
- */
- public function setEmail($email)
- {
- $this->email = $email;
- }
- public function getRoles()
- {
- $role = array('ROLE_USER');
- return $role;
- }
- public function getPassword()
- {
- return $this->password;
- }
- public function setPassword($password){
- $this->password = $password;
- }
- public function getSalt()
- {
- return null;
- }
- public function getUsername()
- {
- return $this->username;
- }
- /**
- * @return int
- */
- public function getDirectoryCategoryId()
- {
- return $this->directory_category_id;
- }
- /**
- * @param int $directory_category_id
- */
- public function setDirectoryCategoryId($directory_category_id)
- {
- $this->directory_category_id = $directory_category_id;
- }
- public function eraseCredentials()
- {
- }
- public function serialize()
- {
- return serialize(array(
- $this->id,
- $this->username,
- $this->password,
- // see section on salt below
- // $this->salt,
- ));
- }
- public function unserialize($serialized)
- {
- list (
- $this->id,
- $this->username,
- $this->password,
- // see section on salt below
- // $this->salt
- ) = unserialize($serialized);
- }
- /**
- * Get enabled
- *
- * @return boolean
- */
- public function getEnabled()
- {
- return $this->enabled;
- }
- /**
- * Get active
- *
- * @return boolean
- */
- public function getActive()
- {
- return $this->active;
- }
- /**
- * Get company
- *
- * @return boolean
- */
- public function getCompany()
- {
- return $this->company;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement