Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * This file is the main User Entity
- *
- * Works with FOSUserBundle
- */
- namespace Handelsdeal\Bundle\UserBundle\Entity;
- use FOS\UserBundle\Entity\User as BaseUser;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
- * @ORM\Entity
- * @ORM\Table(name="fos_user")
- */
- class User extends BaseUser {
- /**
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\generatedValue(strategy="AUTO")
- */
- protected $id;
- public function __construct() {
- parent::__construct();
- }
- /**
- * @ORM\Column(name="salutation", type="string", length="30")
- */
- protected $salutation;
- /**
- * @ORM\Column(name="name_first", type="string", length="55")
- */
- protected $nameFirst;
- /**
- * @ORM\Column(name="name_last", type="string", length="55")
- */
- protected $nameLast;
- /**
- * @ORM\Column(name="vat_number", type="string", length="30")
- */
- protected $vatNumber;
- /**
- * @ORM\Column(name="company_name", type="string", length="220")
- */
- protected $companyName;
- /**
- * @ORM\Column(name="company_branch", type="string", length="120")
- */
- protected $companyBranch;
- /**
- * @ORM\Column(name="company_number_of_employees", type="string", length="30")
- */
- protected $companyNumberOfEmployees;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set salutation
- *
- * @param string $salutation
- */
- public function setSalutation($salutation)
- {
- $this->salutation = $salutation;
- }
- /**
- * Get salutation
- *
- * @return string
- */
- public function getSalutation()
- {
- return $this->salutation;
- }
- /**
- * Set nameFirst
- *
- * @param string $nameFirst
- */
- public function setNameFirst($nameFirst)
- {
- $this->nameFirst = $nameFirst;
- }
- /**
- * Get nameFirst
- *
- * @return string
- */
- public function getNameFirst()
- {
- return $this->nameFirst;
- }
- /**
- * Set nameLast
- *
- * @param string $nameLast
- */
- public function setNameLast($nameLast)
- {
- $this->nameLast = $nameLast;
- }
- /**
- * Get nameLast
- *
- * @return string
- */
- public function getNameLast()
- {
- return $this->nameLast;
- }
- /**
- * Set vatNumber
- *
- * @param string $vatNumber
- */
- public function setVatNumber($vatNumber)
- {
- $this->vatNumber = $vatNumber;
- }
- /**
- * Get vatNumber
- *
- * @return string
- */
- public function getVatNumber()
- {
- return $this->vatNumber;
- }
- /**
- * Set companyName
- *
- * @param string $companyName
- */
- public function setCompanyName($companyName)
- {
- $this->companyName = $companyName;
- }
- /**
- * Get companyName
- *
- * @return string
- */
- public function getCompanyName()
- {
- return $this->companyName;
- }
- /**
- * Set companyBranch
- *
- * @param string $companyBranch
- */
- public function setCompanyBranch($companyBranch)
- {
- $this->companyBranch = $companyBranch;
- }
- /**
- * Get companyBranch
- *
- * @return string
- */
- public function getCompanyBranch()
- {
- return $this->companyBranch;
- }
- /**
- * Set companyNumberOfEmployees
- *
- * @param string $companyNumberOfEmployees
- */
- public function setCompanyNumberOfEmployees($companyNumberOfEmployees)
- {
- $this->companyNumberOfEmployees = $companyNumberOfEmployees;
- }
- /**
- * Get companyNumberOfEmployees
- *
- * @return string
- */
- public function getCompanyNumberOfEmployees()
- {
- return $this->companyNumberOfEmployees;
- }
- /**
- * @var string $username
- */
- private $username;
- /**
- * @var string $usernameCanonical
- */
- private $usernameCanonical;
- /**
- * @var string $email
- */
- private $email;
- /**
- * @var string $emailCanonical
- */
- private $emailCanonical;
- /**
- * @var boolean $enabled
- */
- private $enabled;
- /**
- * @var string $algorithm
- */
- private $algorithm;
- /**
- * @var string $salt
- */
- private $salt;
- /**
- * @var string $password
- */
- private $password;
- /**
- * @var datetime $createdAt
- */
- private $createdAt;
- /**
- * @var datetime $updatedAt
- */
- private $updatedAt;
- /**
- * @var datetime $lastLogin
- */
- private $lastLogin;
- /**
- * @var boolean $locked
- */
- private $locked;
- /**
- * @var boolean $expired
- */
- private $expired;
- /**
- * @var datetime $expiresAt
- */
- private $expiresAt;
- /**
- * @var string $confirmationToken
- */
- private $confirmationToken;
- /**
- * @var datetime $passwordRequestedAt
- */
- private $passwordRequestedAt;
- /**
- * @var array $roles
- */
- private $roles;
- /**
- * @var boolean $credentialsExpired
- */
- private $credentialsExpired;
- /**
- * @var datetime $credentialsExpireAt
- */
- private $credentialsExpireAt;
- /**
- * Set username
- *
- * @param string $username
- */
- public function setUsername($username)
- {
- $this->username = $username;
- }
- /**
- * Get username
- *
- * @return string
- */
- public function getUsername()
- {
- return $this->username;
- }
- /**
- * Set usernameCanonical
- *
- * @param string $usernameCanonical
- */
- public function setUsernameCanonical($usernameCanonical)
- {
- $this->usernameCanonical = $usernameCanonical;
- }
- /**
- * Get usernameCanonical
- *
- * @return string
- */
- public function getUsernameCanonical()
- {
- return $this->usernameCanonical;
- }
- /**
- * Set email
- *
- * @param string $email
- */
- public function setEmail($email)
- {
- $this->email = $email;
- }
- /**
- * Get email
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
- /**
- * Set emailCanonical
- *
- * @param string $emailCanonical
- */
- public function setEmailCanonical($emailCanonical)
- {
- $this->emailCanonical = $emailCanonical;
- }
- /**
- * Get emailCanonical
- *
- * @return string
- */
- public function getEmailCanonical()
- {
- return $this->emailCanonical;
- }
- /**
- * Set enabled
- *
- * @param boolean $enabled
- */
- public function setEnabled($enabled)
- {
- $this->enabled = $enabled;
- }
- /**
- * Get enabled
- *
- * @return boolean
- */
- public function getEnabled()
- {
- return $this->enabled;
- }
- /**
- * Set algorithm
- *
- * @param string $algorithm
- */
- public function setAlgorithm($algorithm)
- {
- $this->algorithm = $algorithm;
- }
- /**
- * Get algorithm
- *
- * @return string
- */
- public function getAlgorithm()
- {
- return $this->algorithm;
- }
- /**
- * Set salt
- *
- * @param string $salt
- */
- public function setSalt($salt)
- {
- $this->salt = $salt;
- }
- /**
- * Get salt
- *
- * @return string
- */
- public function getSalt()
- {
- return $this->salt;
- }
- /**
- * Set password
- *
- * @param string $password
- */
- public function setPassword($password)
- {
- $this->password = $password;
- }
- /**
- * Get password
- *
- * @return string
- */
- public function getPassword()
- {
- return $this->password;
- }
- /**
- * Set createdAt
- *
- * @param datetime $createdAt
- */
- public function setCreatedAt($createdAt)
- {
- $this->createdAt = $createdAt;
- }
- /**
- * Get createdAt
- *
- * @return datetime
- */
- public function getCreatedAt()
- {
- return $this->createdAt;
- }
- /**
- * Set updatedAt
- *
- * @param datetime $updatedAt
- */
- public function setUpdatedAt($updatedAt)
- {
- $this->updatedAt = $updatedAt;
- }
- /**
- * Get updatedAt
- *
- * @return datetime
- */
- public function getUpdatedAt()
- {
- return $this->updatedAt;
- }
- /**
- * Set lastLogin
- *
- * @param datetime $lastLogin
- */
- public function setLastLogin($lastLogin)
- {
- $this->lastLogin = $lastLogin;
- }
- /**
- * Get lastLogin
- *
- * @return datetime
- */
- public function getLastLogin()
- {
- return $this->lastLogin;
- }
- /**
- * Set locked
- *
- * @param boolean $locked
- */
- public function setLocked($locked)
- {
- $this->locked = $locked;
- }
- /**
- * Get locked
- *
- * @return boolean
- */
- public function getLocked()
- {
- return $this->locked;
- }
- /**
- * Set expired
- *
- * @param boolean $expired
- */
- public function setExpired($expired)
- {
- $this->expired = $expired;
- }
- /**
- * Get expired
- *
- * @return boolean
- */
- public function getExpired()
- {
- return $this->expired;
- }
- /**
- * Set expiresAt
- *
- * @param datetime $expiresAt
- */
- public function setExpiresAt($expiresAt)
- {
- $this->expiresAt = $expiresAt;
- }
- /**
- * Get expiresAt
- *
- * @return datetime
- */
- public function getExpiresAt()
- {
- return $this->expiresAt;
- }
- /**
- * Set confirmationToken
- *
- * @param string $confirmationToken
- */
- public function setConfirmationToken($confirmationToken)
- {
- $this->confirmationToken = $confirmationToken;
- }
- /**
- * Get confirmationToken
- *
- * @return string
- */
- public function getConfirmationToken()
- {
- return $this->confirmationToken;
- }
- /**
- * Set passwordRequestedAt
- *
- * @param datetime $passwordRequestedAt
- */
- public function setPasswordRequestedAt($passwordRequestedAt)
- {
- $this->passwordRequestedAt = $passwordRequestedAt;
- }
- /**
- * Get passwordRequestedAt
- *
- * @return datetime
- */
- public function getPasswordRequestedAt()
- {
- return $this->passwordRequestedAt;
- }
- /**
- * Set roles
- *
- * @param array $roles
- */
- public function setRoles($roles)
- {
- $this->roles = $roles;
- }
- /**
- * Get roles
- *
- * @return array
- */
- public function getRoles()
- {
- return $this->roles;
- }
- /**
- * Set credentialsExpired
- *
- * @param boolean $credentialsExpired
- */
- public function setCredentialsExpired($credentialsExpired)
- {
- $this->credentialsExpired = $credentialsExpired;
- }
- /**
- * Get credentialsExpired
- *
- * @return boolean
- */
- public function getCredentialsExpired()
- {
- return $this->credentialsExpired;
- }
- /**
- * Set credentialsExpireAt
- *
- * @param datetime $credentialsExpireAt
- */
- public function setCredentialsExpireAt($credentialsExpireAt)
- {
- $this->credentialsExpireAt = $credentialsExpireAt;
- }
- /**
- * Get credentialsExpireAt
- *
- * @return datetime
- */
- public function getCredentialsExpireAt()
- {
- return $this->credentialsExpireAt;
- }
- /**
- * @ORM\prePersist
- */
- public function incrementCreatedAt()
- {
- // Add your code here
- }
- /**
- * @ORM\preUpdate
- */
- public function incrementUpdatedAt()
- {
- // Add your code here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement