676 lines
10 KiB
PHP
676 lines
10 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Kimai package.
|
|
*
|
|
* (c) Kevin Papst <kevin@kevinpapst.de>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace TimesheetBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* Customer
|
|
*
|
|
* @ORM\Table(name="customers")
|
|
* @ORM\Entity
|
|
*
|
|
* @author Kevin Papst <kevin@kevinpapst.de>
|
|
*/
|
|
class Customer
|
|
{
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="customerID", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $customerid;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="name", type="string", length=255, nullable=false)
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="comment", type="text", length=65535, nullable=true)
|
|
*/
|
|
private $comment;
|
|
|
|
/**
|
|
* @var boolean
|
|
*
|
|
* @ORM\Column(name="visible", type="boolean", nullable=false)
|
|
*/
|
|
private $visible = '1';
|
|
|
|
/**
|
|
* @var boolean
|
|
*
|
|
* @ORM\Column(name="filter", type="boolean", nullable=false)
|
|
*/
|
|
private $filter = '0';
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="company", type="string", length=255, nullable=true)
|
|
*/
|
|
private $company;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="vat", type="string", length=255, nullable=true)
|
|
*/
|
|
private $vat;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="contact", type="string", length=255, nullable=true)
|
|
*/
|
|
private $contact;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="street", type="string", length=255, nullable=true)
|
|
*/
|
|
private $street;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="zipcode", type="string", length=255, nullable=true)
|
|
*/
|
|
private $zipcode;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="city", type="string", length=255, nullable=true)
|
|
*/
|
|
private $city;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="country", type="string", length=2, nullable=true)
|
|
*/
|
|
private $country;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="phone", type="string", length=255, nullable=true)
|
|
*/
|
|
private $phone;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="fax", type="string", length=255, nullable=true)
|
|
*/
|
|
private $fax;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="mobile", type="string", length=255, nullable=true)
|
|
*/
|
|
private $mobile;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="mail", type="string", length=255, nullable=true)
|
|
*/
|
|
private $mail;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="homepage", type="string", length=255, nullable=true)
|
|
*/
|
|
private $homepage;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="timezone", type="string", length=255, nullable=false)
|
|
*/
|
|
private $timezone;
|
|
|
|
/**
|
|
* @var boolean
|
|
*
|
|
* @ORM\Column(name="trash", type="boolean", nullable=false)
|
|
*/
|
|
private $trash = '0';
|
|
|
|
/**
|
|
* Set name
|
|
*
|
|
* @param string $name
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set password
|
|
*
|
|
* @param string $password
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setPassword($password)
|
|
{
|
|
$this->password = $password;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get password
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPassword()
|
|
{
|
|
return $this->password;
|
|
}
|
|
|
|
/**
|
|
* Set passwordresethash
|
|
*
|
|
* @param string $passwordresethash
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setPasswordresethash($passwordresethash)
|
|
{
|
|
$this->passwordresethash = $passwordresethash;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get passwordresethash
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPasswordresethash()
|
|
{
|
|
return $this->passwordresethash;
|
|
}
|
|
|
|
/**
|
|
* Set secure
|
|
*
|
|
* @param string $secure
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setSecure($secure)
|
|
{
|
|
$this->secure = $secure;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get secure
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSecure()
|
|
{
|
|
return $this->secure;
|
|
}
|
|
|
|
/**
|
|
* Set comment
|
|
*
|
|
* @param string $comment
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setComment($comment)
|
|
{
|
|
$this->comment = $comment;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get comment
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getComment()
|
|
{
|
|
return $this->comment;
|
|
}
|
|
|
|
/**
|
|
* Set visible
|
|
*
|
|
* @param boolean $visible
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setVisible($visible)
|
|
{
|
|
$this->visible = $visible;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get visible
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function getVisible()
|
|
{
|
|
return $this->visible;
|
|
}
|
|
|
|
/**
|
|
* Set filter
|
|
*
|
|
* @param boolean $filter
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setFilter($filter)
|
|
{
|
|
$this->filter = $filter;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get filter
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function getFilter()
|
|
{
|
|
return $this->filter;
|
|
}
|
|
|
|
/**
|
|
* Set company
|
|
*
|
|
* @param string $company
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setCompany($company)
|
|
{
|
|
$this->company = $company;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get company
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCompany()
|
|
{
|
|
return $this->company;
|
|
}
|
|
|
|
/**
|
|
* Set vat
|
|
*
|
|
* @param string $vat
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setVat($vat)
|
|
{
|
|
$this->vat = $vat;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get vat
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getVat()
|
|
{
|
|
return $this->vat;
|
|
}
|
|
|
|
/**
|
|
* Set contact
|
|
*
|
|
* @param string $contact
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setContact($contact)
|
|
{
|
|
$this->contact = $contact;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get contact
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getContact()
|
|
{
|
|
return $this->contact;
|
|
}
|
|
|
|
/**
|
|
* Set street
|
|
*
|
|
* @param string $street
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setStreet($street)
|
|
{
|
|
$this->street = $street;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get street
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getStreet()
|
|
{
|
|
return $this->street;
|
|
}
|
|
|
|
/**
|
|
* Set zipcode
|
|
*
|
|
* @param string $zipcode
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setZipcode($zipcode)
|
|
{
|
|
$this->zipcode = $zipcode;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get zipcode
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getZipcode()
|
|
{
|
|
return $this->zipcode;
|
|
}
|
|
|
|
/**
|
|
* Set city
|
|
*
|
|
* @param string $city
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setCity($city)
|
|
{
|
|
$this->city = $city;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get city
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCity()
|
|
{
|
|
return $this->city;
|
|
}
|
|
|
|
/**
|
|
* Set country
|
|
*
|
|
* @param string $country
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setCountry($country)
|
|
{
|
|
$this->country = $country;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get country
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCountry()
|
|
{
|
|
return $this->country;
|
|
}
|
|
|
|
/**
|
|
* Set phone
|
|
*
|
|
* @param string $phone
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setPhone($phone)
|
|
{
|
|
$this->phone = $phone;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get phone
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPhone()
|
|
{
|
|
return $this->phone;
|
|
}
|
|
|
|
/**
|
|
* Set fax
|
|
*
|
|
* @param string $fax
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setFax($fax)
|
|
{
|
|
$this->fax = $fax;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get fax
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getFax()
|
|
{
|
|
return $this->fax;
|
|
}
|
|
|
|
/**
|
|
* Set mobile
|
|
*
|
|
* @param string $mobile
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setMobile($mobile)
|
|
{
|
|
$this->mobile = $mobile;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get mobile
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMobile()
|
|
{
|
|
return $this->mobile;
|
|
}
|
|
|
|
/**
|
|
* Set mail
|
|
*
|
|
* @param string $mail
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setMail($mail)
|
|
{
|
|
$this->mail = $mail;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get mail
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMail()
|
|
{
|
|
return $this->mail;
|
|
}
|
|
|
|
/**
|
|
* Set homepage
|
|
*
|
|
* @param string $homepage
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setHomepage($homepage)
|
|
{
|
|
$this->homepage = $homepage;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get homepage
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getHomepage()
|
|
{
|
|
return $this->homepage;
|
|
}
|
|
|
|
/**
|
|
* Set timezone
|
|
*
|
|
* @param string $timezone
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setTimezone($timezone)
|
|
{
|
|
$this->timezone = $timezone;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get timezone
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getTimezone()
|
|
{
|
|
return $this->timezone;
|
|
}
|
|
|
|
/**
|
|
* Set trash
|
|
*
|
|
* @param boolean $trash
|
|
*
|
|
* @return Customer
|
|
*/
|
|
public function setTrash($trash)
|
|
{
|
|
$this->trash = $trash;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get trash
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function getTrash()
|
|
{
|
|
return $this->trash;
|
|
}
|
|
|
|
/**
|
|
* Get customerid
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getCustomerid()
|
|
{
|
|
return $this->customerid;
|
|
}
|
|
}
|