<?php
/**
* User class represents simple model of User entity
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\UserRepo")
* @ORM\Table(name="user")
*/
class User
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $userId=0;
/**
* @ORM\Column(type="string", length=100, unique=true)
*/
protected $userName;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $company;
/**
* @ORM\Column(type="string", length=100, nullable=false)
*/
protected $email;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $contactPerson;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $contactPersonEmail;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $telephone;
/**
* @ORM\Column(type="string", length=100)
*/
protected $psw;
/**
* @ORM\Column(type="integer")
*/
private $type=0;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $notes;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $dateInserted;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
protected $lastLogin;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $address;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $invoiceAddress;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $ico;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $preferredLanguageId=0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $preferredCurrencyId=0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $preferredPaymentId=0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $preferredDeliveryId=0;
/**
* @ORM\Column(type="string", length=3, nullable=true)
*/
protected $businessModel;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $datePayment;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $responsibleAdminUserId=0;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $dateResponsibilityGiven;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $status=1;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $serverId=1;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $areaId=1;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $preferredSectionId=0;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $avatarUrl;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $logoUrl;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $preferredSectionId2=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $characterSet;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $dateEntitiesUpdated;
/**
* Many Users have Many Services.
* @ORM\ManyToMany(targetEntity="Service",cascade={"persist"})
* @ORM\JoinTable(name="user_service",
* joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="user_id")},
* inverseJoinColumns={@ORM\JoinColumn(name="service_id", referencedColumnName="service_id", unique=false)}
* )
*/
protected $services;
/**
* @ORM\ManyToMany(targetEntity="Module",cascade={"persist"})
* @ORM\JoinTable(name="user_module",
* joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="user_id")},
* inverseJoinColumns={@ORM\JoinColumn(name="module_id", referencedColumnName="module_id", unique=false)}
* )
*/
protected $modules;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $databaseHost;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $databaseName;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $databaseUser;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $databasePassword;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $bankAccount;
/**
* Constructor
*/
public function __construct()
{
$this->services = new \Doctrine\Common\Collections\ArrayCollection();
$this->modules = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get userId
*
* @return integer
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set userName
*
* @param string $userName
*
* @return User
*/
public function setUserName($userName)
{
$this->userName = $userName;
return $this;
}
/**
* Get userName
*
* @return string
*/
public function getUserName()
{
return $this->userName;
}
/**
* Set company
*
* @param string $company
*
* @return User
*/
public function setCompany($company)
{
$this->company = $company;
return $this;
}
/**
* Get company
*
* @return string
*/
public function getCompany()
{
return $this->company;
}
/**
* Set email
*
* @param string $email
*
* @return User
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set contactPerson
*
* @param string $contactPerson
*
* @return User
*/
public function setContactPerson($contactPerson)
{
$this->contactPerson = $contactPerson;
return $this;
}
/**
* Get contactPerson
*
* @return string
*/
public function getContactPerson()
{
return $this->contactPerson;
}
/**
* Set contactPersonEmail
*
* @param string $contactPersonEmail
*
* @return User
*/
public function setContactPersonEmail($contactPersonEmail)
{
$this->contactPersonEmail = $contactPersonEmail;
return $this;
}
/**
* Get contactPersonEmail
*
* @return string
*/
public function getContactPersonEmail()
{
return $this->contactPersonEmail;
}
/**
* Set telephone
*
* @param string $telephone
*
* @return User
*/
public function setTelephone($telephone)
{
$this->telephone = $telephone;
return $this;
}
/**
* Get telephone
*
* @return string
*/
public function getTelephone()
{
return $this->telephone;
}
/**
* Set psw
*
* @param string $psw
*
* @return User
*/
public function setPsw($psw)
{
$this->psw = $psw;
return $this;
}
/**
* Get psw
*
* @return string
*/
public function getPsw()
{
return $this->psw;
}
/**
* Set type
*
* @param integer $type
*
* @return User
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return integer
*/
public function getType()
{
return $this->type;
}
/**
* Set notes
*
* @param string $notes
*
* @return User
*/
public function setNotes($notes)
{
$this->notes = $notes;
return $this;
}
/**
* Get notes
*
* @return string
*/
public function getNotes()
{
return $this->notes;
}
/**
* Set dateInserted
*
* @param \DateTime $dateInserted
*
* @return User
*/
public function setDateInserted($dateInserted)
{
$this->dateInserted = $dateInserted;
return $this;
}
/**
* Get dateInserted
*
* @return \DateTime
*/
public function getDateInserted()
{
return $this->dateInserted;
}
/**
* Set lastLogin
*
* @param \DateTime $lastLogin
*
* @return User
*/
public function setLastLogin($lastLogin)
{
$this->lastLogin = $lastLogin;
return $this;
}
/**
* Get lastLogin
*
* @return \DateTime
*/
public function getLastLogin()
{
return $this->lastLogin;
}
/**
* Set address
*
* @param string $address
*
* @return User
*/
public function setAddress($address)
{
$this->address = $address;
return $this;
}
/**
* Get address
*
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Set invoiceAddress
*
* @param string $invoiceAddress
*
* @return User
*/
public function setInvoiceAddress($invoiceAddress)
{
$this->invoiceAddress = $invoiceAddress;
return $this;
}
/**
* Get invoiceAddress
*
* @return string
*/
public function getInvoiceAddress()
{
return $this->invoiceAddress;
}
/**
* Set ico
*
* @param string $ico
*
* @return User
*/
public function setIco($ico)
{
$this->ico = $ico;
return $this;
}
/**
* Get ico
*
* @return string
*/
public function getIco()
{
return $this->ico;
}
/**
* Set preferredLanguageId
*
* @param integer $preferredLanguageId
*
* @return User
*/
public function setPreferredLanguageId($preferredLanguageId)
{
$this->preferredLanguageId = $preferredLanguageId;
return $this;
}
/**
* Get preferredLanguageId
*
* @return integer
*/
public function getPreferredLanguageId()
{
return $this->preferredLanguageId;
}
/**
* Set preferredCurrencyId
*
* @param integer $preferredCurrencyId
*
* @return User
*/
public function setPreferredCurrencyId($preferredCurrencyId)
{
$this->preferredCurrencyId = $preferredCurrencyId;
return $this;
}
/**
* Get preferredCurrencyId
*
* @return integer
*/
public function getPreferredCurrencyId()
{
return $this->preferredCurrencyId;
}
/**
* Set preferredPaymentId
*
* @param integer $preferredPaymentId
*
* @return User
*/
public function setPreferredPaymentId($preferredPaymentId)
{
$this->preferredPaymentId = $preferredPaymentId;
return $this;
}
/**
* Get preferredPaymentId
*
* @return integer
*/
public function getPreferredPaymentId()
{
return $this->preferredPaymentId;
}
/**
* Set preferredDeliveryId
*
* @param integer $preferredDeliveryId
*
* @return User
*/
public function setPreferredDeliveryId($preferredDeliveryId)
{
$this->preferredDeliveryId = $preferredDeliveryId;
return $this;
}
/**
* Get preferredDeliveryId
*
* @return integer
*/
public function getPreferredDeliveryId()
{
return $this->preferredDeliveryId;
}
/**
* Set businessModel
*
* @param string $businessModel
*
* @return User
*/
public function setBusinessModel($businessModel)
{
$this->businessModel = $businessModel;
return $this;
}
/**
* Get businessModel
*
* @return string
*/
public function getBusinessModel()
{
return $this->businessModel;
}
/**
* Set datePayment
*
* @param \DateTime $datePayment
*
* @return User
*/
public function setDatePayment($datePayment)
{
$this->datePayment = $datePayment;
return $this;
}
/**
* Get datePayment
*
* @return \DateTime
*/
public function getDatePayment()
{
return $this->datePayment;
}
/**
* Set responsibleAdminUserId
*
* @param integer $responsibleAdminUserId
*
* @return User
*/
public function setResponsibleAdminUserId($responsibleAdminUserId)
{
$this->responsibleAdminUserId = $responsibleAdminUserId;
return $this;
}
/**
* Get responsibleAdminUserId
*
* @return integer
*/
public function getResponsibleAdminUserId()
{
return $this->responsibleAdminUserId;
}
/**
* Set dateResponsibilityGiven
*
* @param \DateTime $dateResponsibilityGiven
*
* @return User
*/
public function setDateResponsibilityGiven($dateResponsibilityGiven)
{
$this->dateResponsibilityGiven = $dateResponsibilityGiven;
return $this;
}
/**
* Get dateResponsibilityGiven
*
* @return \DateTime
*/
public function getDateResponsibilityGiven()
{
return $this->dateResponsibilityGiven;
}
/**
* Set status
*
* @param integer $status
*
* @return User
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status
*
* @return integer
*/
public function getStatus()
{
return $this->status;
}
/**
* Set serverId
*
* @param integer $serverId
*
* @return User
*/
public function setServerId($serverId)
{
$this->serverId = $serverId;
return $this;
}
/**
* Get serverId
*
* @return integer
*/
public function getServerId()
{
return $this->serverId;
}
/**
* Set areaId
*
* @param integer $areaId
*
* @return User
*/
public function setAreaId($areaId)
{
$this->areaId = $areaId;
return $this;
}
/**
* Get areaId
*
* @return integer
*/
public function getAreaId()
{
return $this->areaId;
}
/**
* Set preferredSectionId
*
* @param integer $preferredSectionId
*
* @return User
*/
public function setPreferredSectionId($preferredSectionId)
{
$this->preferredSectionId = $preferredSectionId;
return $this;
}
/**
* Get preferredSectionId
*
* @return integer
*/
public function getPreferredSectionId()
{
return $this->preferredSectionId;
}
/**
* Set avatarUrl
*
* @param string $avatarUrl
*
* @return User
*/
public function setAvatarUrl($avatarUrl)
{
$this->avatarUrl = $avatarUrl;
return $this;
}
/**
* Get avatarUrl
*
* @return string
*/
public function getAvatarUrl()
{
return $this->avatarUrl;
}
/**
* Set logoUrl
*
* @param string $logoUrl
*
* @return User
*/
public function setLogoUrl($logoUrl)
{
$this->logoUrl = $logoUrl;
return $this;
}
/**
* Get logoUrl
*
* @return string
*/
public function getLogoUrl()
{
return $this->logoUrl;
}
/**
* Set preferredSectionId2
*
* @param integer $preferredSectionId2
*
* @return User
*/
public function setPreferredSectionId2($preferredSectionId2)
{
$this->preferredSectionId2 = $preferredSectionId2;
return $this;
}
/**
* Get preferredSectionId2
*
* @return integer
*/
public function getPreferredSectionId2()
{
return $this->preferredSectionId2;
}
/**
* Set characterSet
*
* @param string $characterSet
*
* @return User
*/
public function setCharacterSet($characterSet)
{
$this->characterSet = $characterSet;
return $this;
}
/**
* Get characterSet
*
* @return string
*/
public function getCharacterSet()
{
return $this->characterSet;
}
/**
* Set dateEntitiesUpdated
*
* @param \DateTime $dateEntitiesUpdated
*
* @return User
*/
public function setDateEntitiesUpdated($dateEntitiesUpdated)
{
$this->dateEntitiesUpdated = $dateEntitiesUpdated;
return $this;
}
/**
* Get dateEntitiesUpdated
*
* @return \DateTime
*/
public function getDateEntitiesUpdated()
{
return $this->dateEntitiesUpdated;
}
/**
* Set databaseHost
*
* @param string $databaseHost
*
* @return User
*/
public function setDatabaseHost($databaseHost)
{
$this->databaseHost = $databaseHost;
return $this;
}
/**
* Get databaseHost
*
* @return string
*/
public function getDatabaseHost()
{
return $this->databaseHost;
}
/**
* Set databaseName
*
* @param string $databaseName
*
* @return User
*/
public function setDatabaseName($databaseName)
{
$this->databaseName = $databaseName;
return $this;
}
/**
* Get databaseName
*
* @return string
*/
public function getDatabaseName()
{
return $this->databaseName;
}
/**
* Set databaseUser
*
* @param string $databaseUser
*
* @return User
*/
public function setDatabaseUser($databaseUser)
{
$this->databaseUser = $databaseUser;
return $this;
}
/**
* Get databaseUser
*
* @return string
*/
public function getDatabaseUser()
{
return $this->databaseUser;
}
/**
* Set databasePassword
*
* @param string $databasePassword
*
* @return User
*/
public function setDatabasePassword($databasePassword)
{
$this->databasePassword = $databasePassword;
return $this;
}
/**
* Get databasePassword
*
* @return string
*/
public function getDatabasePassword()
{
return $this->databasePassword;
}
/**
* Add service
*
* @param \App\Entity\Service $service
*
* @return User
*/
public function addService(\App\Entity\Service $service)
{
$this->services[] = $service;
return $this;
}
/**
* Remove service
*
* @param \App\Entity\Service $service
*/
public function removeService(\App\Entity\Service $service)
{
$this->services->removeElement($service);
}
/**
* Get services
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getServices()
{
return $this->services;
}
/**
* Add module
*
* @param \App\Entity\Module $module
*
* @return User
*/
public function addModule(\App\Entity\Module $module)
{
$this->modules[] = $module;
return $this;
}
/**
* Remove module
*
* @param \App\Entity\Module $module
*/
public function removeModule(\App\Entity\Module $module)
{
$this->modules->removeElement($module);
}
/**
* Get modules
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getModules()
{
return $this->modules;
}
/**
* Set bankAccount
*
* @param string $bankAccount
*
* @return User
*/
public function setBankAccount($bankAccount)
{
$this->bankAccount = $bankAccount;
return $this;
}
/**
* Get bankAccount
*
* @return string
*/
public function getBankAccount()
{
return $this->bankAccount;
}
}