<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\ExclusionPolicy;
use JMS\Serializer\Annotation\Exclude;
use JMS\Serializer\Annotation\Expose;
use JMS\Serializer\Annotation\MaxDepth;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Client
*
* @ORM\Table(name="client", options={"collate"="latin1_general_ci","charset"="latin1"})
* @ORM\Entity(repositoryClass="App\Repository\ClientRepository")
* @ExclusionPolicy("all")
*/
class Client
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @Expose
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="source", type="string", length=10, nullable=false)
*/
private $source;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Admin", inversedBy="clients", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
* @Expose
*/
private $idadmin;
/**
* @var integer
*
* @ORM\Column(name="idnumber", type="integer", nullable=false)
*/
private $idnumber;
/**
* @var string
*
* @ORM\Column(name="reference", type="string", length=50, nullable=true)
*/
private $reference;
/**
* @var string
*
* @ORM\Column(name="serviceclient", type="string", length=50, nullable=true)
*/
private $serviceclient;
/**
* @var boolean
*
* @ORM\Column(name="prospect", type="boolean", nullable=false)
*/
private $prospect;
/**
* @var float
*
* @ORM\Column(name="prospectCA", type="decimal", nullable=true, precision=8, scale=2)
*/
private $prospectca;
/**
* @var \DateTime
*
* @ORM\Column(name="datefr", type="date", nullable=false)
*/
private $datefr;
/**
* @var \DateTime
*
* @ORM\Column(name="dateclientfr", type="date", nullable=false)
*/
private $dateclientfr;
/**
* @var string
*
* @ORM\Column(name="user", type="string", length=11, nullable=true)
*/
private $user;
/**
* @var string
*
* @ORM\Column(name="password", type="string", length=11, nullable=true)
*/
private $password;
/**
* @var string
*
* @ORM\Column(name="nom", type="string", length=150, nullable=false)
* @Expose
*/
private $nom;
/**
* @var string
*
* @ORM\Column(name="raison", type="string", length=150, nullable=true)
* @Expose
*/
private $raison;
/**
* @var string
*
* @ORM\Column(name="contact", type="string", length=100, nullable=true)
*/
private $contact;
/**
* @var string
*
* @ORM\Column(name="fonction", type="string", length=100, nullable=true)
*/
private $fonction;
/**
* @var string
*
* @ORM\Column(name="nomchef", type="string", length=150, nullable=true)
*/
private $nomchef;
/**
* @var string
*
* @ORM\Column(name="mobilechef", type="string", length=30, nullable=true)
*/
private $mobilechef;
/**
* @ORM\Column(type="boolean", options={"default" : 0})
*/
private $utilisateurPrestachef = false;
// CONTACT 2
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $contact2;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $fonction2;
/**
* @ORM\Column(type="string", length=20, nullable=true)
*/
private $tel2;
/**
* @ORM\Column(type="string", length=20,nullable=true)
*/
private $mobile2;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $email2;
/**
* @ORM\Column(type="boolean", options={"default" : 0})
*/
private $utilisateurPrestachef2 = false;
// CONTACT 3
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $contact3;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $fonction3;
/**
* @ORM\Column(type="string", length=20, nullable=true,nullable=true)
*/
private $tel3;
/**
* @ORM\Column(type="string", length=20,nullable=true)
*/
private $mobile3;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $email3;
/**
* @ORM\Column(type="boolean", options={"default" : 0})
*/
private $utilisateurPrestachef3 = false;
// CONTACT 4
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $contact4;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $fonction4;
/**
* @ORM\Column(type="string", length=20, nullable=true,nullable=true)
*/
private $tel4;
/**
* @ORM\Column(type="string", length=20,nullable=true)
*/
private $mobile4;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $email4;
/**
* @ORM\Column(type="boolean", options={"default" : 0})
*/
private $utilisateurPrestachef4 = false;
/**
* @ORM\Column(type="boolean", options={"default" : 0})
*/
private $envoieFacture = false;
/**
* @var integer
*
* @ORM\Column(name="nbcouvertj", type="integer", nullable=true)
*/
private $nbcouvertj;
/**
* @var integer
*
* @ORM\Column(name="nbhectolitre", type="integer", nullable=true)
*/
private $nbhectolitre;
/**
* @var string
*
* @ORM\Column(name="marquebiere", type="string", nullable=true)
*/
private $marquebiere;
/**
* @var integer
*
* @ORM\Column(name="contrat", type="integer", nullable=true)
*/
private $contrat;
/**
* @var string
*
* @ORM\Column(name="distributeurboisson", type="string", nullable=true)
*/
private $distributeurboisson;
/**
* @var \DateTime
*
* @ORM\Column(name="datedebutcontrat", type="date", nullable=true)
*/
private $datedebutcontrat;
/**
* @var \DateTime
*
* @ORM\Column(name="datefincontrat", type="date", nullable=true)
*/
private $datefincontrat;
/**
* @var integer
*
* @ORM\Column(name="typecontrat", type="integer", nullable=true)
*/
private $typecontrat;
/**
* @var integer
*
* @ORM\Column(name="montantcontrat", type="integer", nullable=true)
*/
private $montantcontrat;
/**
* @var integer
*
* @ORM\Column(name="typeaffaire", type="integer", nullable=true)
*/
private $typeaffaire;
/**
* @var float
*
* @ORM\Column(name="cagnottemalys", type="decimal", nullable=true, precision=8, scale=2)
*/
private $cagnottemalys;
/**
* @var string
*
* @ORM\Column(name="heurelivre", type="text", nullable=true)
*/
private $heurelivre;
/**
* @var string
*
* @ORM\Column(name="comment", type="text", nullable=true)
*/
private $comment;
/**
* @var string
*
* @ORM\Column(name="infolivre", type="text", nullable=true)
*/
private $infolivre;
/**
* @var string
*
* @ORM\Column(name="adresse", type="string", length=150, nullable=true)
* @Expose
*/
private $adresse;
/**
* @var string
*
* @ORM\Column(name="cp", type="string", length=10, nullable=true)
* @Expose
*/
private $cp;
/**
* @var string
*
* @ORM\Column(name="ville", type="string", length=100, nullable=true)
* @Expose
*/
private $ville;
/**
* @var string
*
* @ORM\Column(name="pays", type="string", length=2, nullable=true)
* @Expose
*/
private $pays;
/**
* @var string
*
* @ORM\Column(name="tel", type="string", length=30, nullable=true)
* @Expose
*/
private $tel;
/**
* @var string
*
* @ORM\Column(name="mobile", type="string", length=30, nullable=true)
*/
private $mobile;
/**
* @var string
*
* @ORM\Column(name="fax", type="string", length=30, nullable=true)
*/
private $fax;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=150, nullable=true)
* @Expose
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="site", type="string", length=150, nullable=true)
*/
private $site;
/**
* @var float
*
* @ORM\Column(name="reversement", type="decimal", nullable=false, precision=8, scale=2)
*/
private $reversement;
/**
* @var integer
*
* @ORM\Column(name="note", type="smallint", nullable=false)
*/
private $note;
/**
* @var boolean
*
* @ORM\Column(name="activite", type="boolean", nullable=false)
*/
private $activite;
/**
* @var boolean
*
* @ORM\Column(name="affiche", type="boolean", nullable=false)
*/
private $affiche;
/**
* @var string
*
* @ORM\Column(name="geocode", type="string", length=150, nullable=true)
*/
private $geocode;
/**
* @var string
*
* @ORM\Column(name="nom_chef", type="string", length=150, nullable=true)
*/
private $nom_chef;
/**
* @var string
*
* @ORM\Column(name="mail_chef", type="string", length=150, nullable=true)
*/
private $mailChef;
/**
* @var string
*
* @ORM\Column(name="nom_patron", type="string", length=150, nullable=true)
*/
private $nomPatron;
/**
* @var string
*
* @ORM\Column(name="mail_patron", type="string", length=150, nullable=true)
*/
private $mailPatron;
/**
* @var string
*
* @ORM\Column(name="nom_achat", type="string", length=110, nullable=true)
*/
private $nomAchat;
/**
* @var string
*
* @ORM\Column(name="mail_achat", type="string", length=110, nullable=true)
*/
private $mailAchat;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Clientrelation", mappedBy="idclient")
*/
private $clientRelation;
/**
* @var string
*
* @ORM\Column(name="siret", type="string", length=255, nullable=true)
* @Expose
*/
private $siret;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $joursLivraison = [];
/**
* @ORM\Column(type="boolean", nullable=false)
*/
private $clesADisposition = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sameAsAdresse = false;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresseFacturation;
/**
* @ORM\Column(type="string", length=10, nullable=true)
*/
private $cpFacturation;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $villeFacturation;
/**
* @var string
*
* @ORM\Column(name="plustot", type="string", length=150, nullable=true)
*/
private $plustot;
/**
* @var string
*
* @ORM\Column(name="plustard", type="string", length=150, nullable=true)
*/
private $plustard;
/**
* @var string
*
* @ORM\Column(name="condition_reglement", type="string", length=150, nullable=true)
*/
private $conditionReglement;
public function getAdresseFacturation()
{
return $this->adresseFacturation;
}
public function setAdresseFacturation($adresseFacturation)
{
$this->adresseFacturation = $adresseFacturation;
return $this;
}
public function getCpFacturation()
{
return $this->cpFacturation;
}
public function setCpFacturation($cpFacturation)
{
$this->cpFacturation = $cpFacturation;
return $this;
}
public function isEnvoieFacture(): bool
{
return $this->envoieFacture;
}
public function setEnvoieFacture(bool $envoieFacture): void
{
$this->envoieFacture = $envoieFacture;
}
public function getVilleFacturation()
{
return $this->villeFacturation;
}
public function setVilleFacturation($villeFacturation)
{
$this->villeFacturation = $villeFacturation;
return $this;
}
public function getClesADisposition(): bool
{
return (bool)$this->clesADisposition;
}
public function setClesADisposition(bool $clesADisposition): self
{
$this->clesADisposition = $clesADisposition;
return $this;
}
public function getJoursLivraison()
{
return $this->joursLivraison;
}
public function setJoursLivraison($joursLivraison)
{
$this->joursLivraison = $joursLivraison;
}
public function isUtilisateurPrestachef(): bool
{
return $this->utilisateurPrestachef;
}
public function setUtilisateurPrestachef(bool $utilisateurPrestachef): void
{
$this->utilisateurPrestachef = $utilisateurPrestachef;
}
public function isUtilisateurPrestachef2(): bool
{
return $this->utilisateurPrestachef2;
}
public function setUtilisateurPrestachef2(bool $utilisateurPrestachef2): void
{
$this->utilisateurPrestachef2 = $utilisateurPrestachef2;
}
public function isUtilisateurPrestachef3(): bool
{
return $this->utilisateurPrestachef3;
}
public function setUtilisateurPrestachef3(bool $utilisateurPrestachef3): void
{
$this->utilisateurPrestachef3 = $utilisateurPrestachef3;
}
/**
* @return mixed
*/
public function getContact4()
{
return $this->contact4;
}
/**
* @param mixed $contact4
*/
public function setContact4($contact4): void
{
$this->contact4 = $contact4;
}
/**
* @return mixed
*/
public function getFonction4()
{
return $this->fonction4;
}
/**
* @param mixed $fonction4
*/
public function setFonction4($fonction4): void
{
$this->fonction4 = $fonction4;
}
/**
* @return mixed
*/
public function getTel4()
{
return $this->tel4;
}
/**
* @param mixed $tel4
*/
public function setTel4($tel4): void
{
$this->tel4 = $tel4;
}
/**
* @return mixed
*/
public function getMobile4()
{
return $this->mobile4;
}
/**
* @param mixed $mobile4
*/
public function setMobile4($mobile4): void
{
$this->mobile4 = $mobile4;
}
/**
* @return mixed
*/
public function getEmail4()
{
return $this->email4;
}
/**
* @param mixed $email4
*/
public function setEmail4($email4): void
{
$this->email4 = $email4;
}
public function isUtilisateurPrestachef4(): bool
{
return $this->utilisateurPrestachef4;
}
public function setUtilisateurPrestachef4(bool $utilisateurPrestachef4): void
{
$this->utilisateurPrestachef4 = $utilisateurPrestachef4;
}
/* VALEURS PAR DEFAUT */
public function __construct()
{
$this->source = 'malys';
$this->idnumber = 1;
$this->reference = '';
$this->serviceclient = '';
$this->prospect = true;
$this->pays = 'FR';
$this->reversement = 0;
$this->activite = true;
$this->sameAsAdresse = true;
$this->geocode = '0|0';
$this->nom_chef = '';
$this->user = '';
$this->mailChef = '';
$this->nomPatron = '';
$this->mailPatron = '';
$this->nomAchat = '';
$this->siret = '';
$this->mailAchat = '';
$this->marquebiere = '';
$this->infolivre = '';
$this->distributeurboisson = '';
$this->datefr = new \DateTime("now");
$this->dateclientfr = new \DateTime("now");
$this->affiche = true;
$this->note = 2;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set source
*
* @param string $source
*
* @return Client
*/
public function setSource($source)
{
$this->source = $source;
return $this;
}
/**
* Get source
*
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Set idnumber
*
* @param integer $idnumber
*
* @return Client
*/
public function setIdnumber($idnumber)
{
$this->idnumber = $idnumber;
return $this;
}
/**
* Get idnumber
*
* @return integer
*/
public function getIdnumber()
{
return $this->idnumber;
}
/**
* Set reference
*
* @param string $reference
*
* @return Client
*/
public function setReference($reference)
{
$this->reference = $reference;
return $this;
}
/**
* Get reference
*
* @return string
*/
public function getReference()
{
return $this->reference;
}
/**
* Set serviceclient
*
* @param string $serviceclient
*
* @return Client
*/
public function setServiceclient($serviceclient)
{
$this->serviceclient = $serviceclient;
return $this;
}
/**
* Get serviceclient
*
* @return string
*/
public function getServiceclient()
{
return $this->serviceclient;
}
/**
* Set prospect
*
* @param boolean $prospect
*
* @return Client
*/
public function setProspect($prospect)
{
$this->prospect = $prospect;
return $this;
}
/**
* Get prospect
*
* @return boolean
*/
public function getProspect()
{
return $this->prospect;
}
/**
* Set prospectca
*
* @param float $prospectca
*
* @return Client
*/
public function setProspectca($prospectca)
{
$this->prospectca = $prospectca;
return $this;
}
/**
* Get prospectca
*
* @return float
*/
public function getProspectca()
{
return $this->prospectca;
}
/**
* Set datefr
*
* @param \DateTime $datefr
*
* @return Client
*/
public function setDatefr($datefr)
{
$this->datefr = $datefr;
return $this;
}
/**
* Get datefr
*
* @return \DateTime
*/
public function getDatefr()
{
return $this->datefr;
}
/**
* Set dateclientfr
*
* @param \DateTime $dateclientfr
*
* @return Client
*/
public function setDateclientfr($dateclientfr)
{
$this->dateclientfr = $dateclientfr;
return $this;
}
/**
* Get dateclientfr
*
* @return \DateTime
*/
public function getDateclientfr()
{
return $this->dateclientfr;
}
/**
* Set user
*
* @param string $user
*
* @return Client
*/
public function setUser($user)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return string
*/
public function getUser()
{
return $this->user;
}
/**
* Set password
*
* @param string $password
*
* @return Client
*/
public function setPassword($password)
{
$this->password = $password;
return $this;
}
/**
* Get password
*
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Set nom
*
* @param string $nom
*
* @return Client
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get nom
*
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* Set raison
*
* @param string $raison
*
* @return Client
*/
public function setRaison($raison)
{
$this->raison = $raison;
return $this;
}
/**
* Get raison
*
* @return string
*/
public function getRaison()
{
return $this->raison;
}
/**
* Set contact
*
* @param string $contact
*
* @return Client
*/
public function setContact($contact)
{
$this->contact = $contact;
return $this;
}
/**
* Get contact
*
* @return string
*/
public function getContact()
{
return $this->contact;
}
/**
* Set fonction
*
* @param string $fonction
*
* @return Client
*/
public function setFonction($fonction)
{
$this->fonction = $fonction;
return $this;
}
/**
* Get fonction
*
* @return string
*/
public function getFonction()
{
return $this->fonction;
}
/**
* Set nomchef
*
* @param string $nomchef
*
* @return Client
*/
public function setNomchef($nomchef)
{
$this->nomchef = $nomchef;
return $this;
}
/**
* Get nomchef
*
* @return string
*/
public function getNomchef()
{
return $this->nomchef;
}
/**
* Set mobilechef
*
* @param string $mobilechef
*
* @return Client
*/
public function setMobilechef($mobilechef)
{
$this->mobilechef = $mobilechef;
return $this;
}
/**
* Get mobilechef
*
* @return string
*/
public function getMobilechef()
{
return $this->mobilechef;
}
/**
* Set nbcouvertj
*
* @param integer $nbcouvertj
*
* @return Client
*/
public function setNbcouvertj($nbcouvertj)
{
$this->nbcouvertj = $nbcouvertj;
return $this;
}
/**
* Get nbcouvertj
*
* @return integer
*/
public function getNbcouvertj()
{
return $this->nbcouvertj;
}
/**
* Set typeaffaire
*
* @param integer $typeaffaire
*
* @return Client
*/
public function setTypeaffaire($typeaffaire)
{
$this->typeaffaire = $typeaffaire;
return $this;
}
/**
* Get typeaffaire
*
* @return integer
*/
public function getTypeaffaire()
{
return $this->typeaffaire;
}
/**
* Set heurelivre
*
* @param string $heurelivre
*
* @return Client
*/
public function setHeurelivre($heurelivre)
{
$this->heurelivre = $heurelivre;
return $this;
}
/**
* Get heurelivre
*
* @return string
*/
public function getHeurelivre()
{
return $this->heurelivre;
}
/**
* Set comment
*
* @param string $comment
*
* @return Client
*/
public function setComment($comment)
{
$this->comment = $comment;
return $this;
}
/**
* Get comment
*
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Set adresse
*
* @param string $adresse
*
* @return Client
*/
public function setAdresse($adresse)
{
$this->adresse = $adresse;
return $this;
}
/**
* Get adresse
*
* @return string
*/
public function getAdresse()
{
return $this->adresse;
}
/**
* Set cp
*
* @param string $cp
*
* @return Client
*/
public function setCp($cp)
{
$this->cp = $cp;
return $this;
}
/**
* Get cp
*
* @return string
*/
public function getCp()
{
return $this->cp;
}
/**
* Set ville
*
* @param string $ville
*
* @return Client
*/
public function setVille($ville)
{
$this->ville = $ville;
return $this;
}
/**
* Get ville
*
* @return string
*/
public function getVille()
{
return $this->ville;
}
/**
* Set pays
*
* @param string $pays
*
* @return Client
*/
public function setPays($pays)
{
$this->pays = $pays;
return $this;
}
/**
* Get pays
*
* @return string
*/
public function getPays()
{
return $this->pays;
}
/**
* Set tel
*
* @param string $tel
*
* @return Client
*/
public function setTel($tel)
{
$this->tel = $tel;
return $this;
}
/**
* Get tel
*
* @return string
*/
public function getTel()
{
return $this->tel;
}
/**
* Set mobile
*
* @param string $mobile
*
* @return Client
*/
public function setMobile($mobile)
{
$this->mobile = $mobile;
return $this;
}
/**
* Get mobile
*
* @return string
*/
public function getMobile()
{
return $this->mobile;
}
/**
* Set fax
*
* @param string $fax
*
* @return Client
*/
public function setFax($fax)
{
$this->fax = $fax;
return $this;
}
/**
* Get fax
*
* @return string
*/
public function getFax()
{
return $this->fax;
}
/**
* Set email
*
* @param string $email
*
* @return Client
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set site
*
* @param string $site
*
* @return Client
*/
public function setSite($site)
{
$this->site = $site;
return $this;
}
/**
* Get site
*
* @return string
*/
public function getSite()
{
return $this->site;
}
/**
* Set reversement
*
* @param float $reversement
*
* @return Client
*/
public function setReversement($reversement)
{
$this->reversement = $reversement;
return $this;
}
/**
* Get reversement
*
* @return float
*/
public function getReversement()
{
return $this->reversement;
}
/**
* @param string $note
* @return $this
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Get note
*
* @return boolean
*/
public function getNote(): bool
{
return $this->note;
}
/**
* Set activite
*
* @param boolean $activite
*
* @return Client
*/
public function setActivite($activite)
{
$this->activite = $activite;
return $this;
}
/**
* Get activite
*
* @return boolean
*/
public function getActivite()
{
return $this->activite;
}
/**
* Set affiche
*
* @param boolean $affiche
*
* @return Client
*/
public function setAffiche($affiche)
{
$this->affiche = $affiche;
return $this;
}
/**
* Get affiche
*
* @return boolean
*/
public function getAffiche()
{
return $this->affiche;
}
/**
* Set geocode
*
* @param string $geocode
*
* @return Client
*/
public function setGeocode($geocode)
{
$this->geocode = $geocode;
return $this;
}
/**
* Get geocode
*
* @return string
*/
public function getGeocode()
{
return $this->geocode;
}
/**
* Set nom_chef
*
* @param string $nomChef
*
* @return Client
*/
public function setNom_Chef($nomChef)
{
$this->nom_chef = $nomChef;
return $this;
}
/**
* Get nom_chef
*
* @return string
*/
public function getNom_Chef()
{
return $this->nom_chef;
}
/**
* Set mailChef
*
* @param string $mailChef
*
* @return Client
*/
public function setMailChef($mailChef)
{
$this->mailChef = $mailChef;
return $this;
}
/**
* Get mailChef
*
* @return string
*/
public function getMailChef()
{
return $this->mailChef;
}
/**
* Set nomPatron
*
* @param string $nomPatron
*
* @return Client
*/
public function setNomPatron($nomPatron)
{
$this->nomPatron = $nomPatron;
return $this;
}
/**
* Get nomPatron
*
* @return string
*/
public function getNomPatron()
{
return $this->nomPatron;
}
/**
* Set mailPatron
*
* @param string $mailPatron
*
* @return Client
*/
public function setMailPatron($mailPatron)
{
$this->mailPatron = $mailPatron;
return $this;
}
/**
* Get mailPatron
*
* @return string
*/
public function getMailPatron()
{
return $this->mailPatron;
}
/**
* Set nomAchat
*
* @param string $nomAchat
*
* @return Client
*/
public function setNomAchat($nomAchat)
{
$this->nomAchat = $nomAchat;
return $this;
}
/**
* Get nomAchat
*
* @return string
*/
public function getNomAchat()
{
return $this->nomAchat;
}
/**
* Set mailAchat
*
* @param string $mailAchat
*
* @return Client
*/
public function setMailAchat($mailAchat)
{
$this->mailAchat = $mailAchat;
return $this;
}
/**
* Get mailAchat
*
* @return string
*/
public function getMailAchat()
{
return $this->mailAchat;
}
/**
* Set idadmin
*
* @param Admin $idadmin
*
* @return Client
*/
public function setIdadmin(Admin $idadmin)
{
$this->idadmin = $idadmin;
return $this;
}
/**
* Get idadmin
*
* @return Admin
*/
public function getIdadmin()
{
return $this->idadmin;
}
/**
* Get clientRelation
*
* @return Clientrelation
*/
public function getClientRelation()
{
return $this->clientRelation;
}
/**
* Set nbhectolitre
*
* @param integer $nbhectolitre
*
* @return Client
*/
public function setNbhectolitre($nbhectolitre)
{
$this->nbhectolitre = $nbhectolitre;
return $this;
}
/**
* Get nbhectolitre
*
* @return integer
*/
public function getNbhectolitre()
{
return $this->nbhectolitre;
}
/**
* Set marquebiere
*
* @param string $marquebiere
*
* @return Client
*/
public function setMarquebiere($marquebiere)
{
$this->marquebiere = $marquebiere;
return $this;
}
/**
* Get marquebiere
*
* @return string
*/
public function getMarquebiere()
{
return $this->marquebiere;
}
/**
* Set contrat
*
* @param integer $contrat
*
* @return Client
*/
public function setContrat($contrat)
{
$this->contrat = $contrat;
return $this;
}
/**
* Get contrat
*
* @return integer
*/
public function getContrat()
{
return $this->contrat;
}
/**
* Set distributeurboisson
*
* @param string $distributeurboisson
*
* @return Client
*/
public function setDistributeurboisson($distributeurboisson)
{
$this->distributeurboisson = $distributeurboisson;
return $this;
}
/**
* Get distributeurboisson
*
* @return string
*/
public function getDistributeurboisson()
{
return $this->distributeurboisson;
}
/**
* Set datedebutcontrat
*
* @param \DateTime $datedebutcontrat
*
* @return Client
*/
public function setDatedebutcontrat($datedebutcontrat)
{
$this->datedebutcontrat = $datedebutcontrat;
return $this;
}
/**
* Get datedebutcontrat
*
* @return \DateTime
*/
public function getDatedebutcontrat()
{
return $this->datedebutcontrat;
}
/**
* Set datefincontrat
*
* @param \DateTime $datefincontrat
*
* @return Client
*/
public function setDatefincontrat($datefincontrat)
{
$this->datefincontrat = $datefincontrat;
return $this;
}
/**
* Get datefincontrat
*
* @return \DateTime
*/
public function getDatefincontrat()
{
return $this->datefincontrat;
}
/**
* Set typecontrat
*
* @param integer $typecontrat
*
* @return Client
*/
public function setTypecontrat($typecontrat)
{
$this->typecontrat = $typecontrat;
return $this;
}
/**
* Get typecontrat
*
* @return integer
*/
public function getTypecontrat()
{
return $this->typecontrat;
}
/**
* Set montantcontrat
*
* @param integer $montantcontrat
*
* @return Client
*/
public function setMontantcontrat($montantcontrat)
{
$this->montantcontrat = $montantcontrat;
return $this;
}
/**
* Get montantcontrat
*
* @return integer
*/
public function getMontantcontrat()
{
return $this->montantcontrat;
}
/**
* Set siret
*
* @param string $siret
*
* @return Client
*/
public function setSiret($siret)
{
$this->siret = $siret;
return $this;
}
/**
* Get siret
*
* @return string
*/
public function getSiret()
{
return $this->siret;
}
/**
* Set cagnottemalys
*
* @param float $cagnottemalys
*
* @return Client
*/
public function setCagnottemalys($cagnottemalys)
{
$this->cagnottemalys = $cagnottemalys;
return $this;
}
/**
* Get cagnottemalys
*
* @return float
*/
public function getCagnottemalys()
{
return $this->cagnottemalys;
}
/**
* Set infolivre
*
* @param string $infolivre
*
* @return Client
*/
public function setInfolivre($infolivre)
{
$this->infolivre = $infolivre;
return $this;
}
/**
* Get infolivre
*
* @return string
*/
public function getInfolivre()
{
return $this->infolivre;
}
/**
* Add clientRelation
*
* @param Clientrelation $clientRelation
*
* @return Client
*/
public function addClientRelation(Clientrelation $clientRelation)
{
$this->clientRelation[] = $clientRelation;
return $this;
}
/**
* Remove clientRelation
*
* @param Clientrelation $clientRelation
*/
public function removeClientRelation(Clientrelation $clientRelation)
{
$this->clientRelation->removeElement($clientRelation);
}
public function isSameAsAdresse()
{
return $this->sameAsAdresse;
}
public function setSameAsAdresse(bool $sameAsAdresse): void
{
$this->sameAsAdresse = $sameAsAdresse;
}
/**
* @return mixed
*/
public function getEmail3()
{
return $this->email3;
}
/**
* @return mixed
*/
public function getContact2()
{
return $this->contact2;
}
/**
* @param mixed $contact2
*/
public function setContact2($contact2): void
{
$this->contact2 = $contact2;
}
/**
* @return mixed
*/
public function getFonction2()
{
return $this->fonction2;
}
/**
* @param mixed $fonction2
*/
public function setFonction2($fonction2): void
{
$this->fonction2 = $fonction2;
}
/**
* @return mixed
*/
public function getTel2()
{
return $this->tel2;
}
/**
* @param mixed $tel2
*/
public function setTel2($tel2): void
{
$this->tel2 = $tel2;
}
/**
* @return mixed
*/
public function getMobile2()
{
return $this->mobile2;
}
/**
* @param mixed $mobile2
*/
public function setMobile2($mobile2): void
{
$this->mobile2 = $mobile2;
}
/**
* @return mixed
*/
public function getEmail2()
{
return $this->email2;
}
/**
* @param mixed $email2
*/
public function setEmail2($email2): void
{
$this->email2 = $email2;
}
/**
* @return mixed
*/
public function getContact3()
{
return $this->contact3;
}
/**
* @param mixed $contact3
*/
public function setContact3($contact3): void
{
$this->contact3 = $contact3;
}
/**
* @return mixed
*/
public function getFonction3()
{
return $this->fonction3;
}
/**
* @param mixed $fonction3
*/
public function setFonction3($fonction3): void
{
$this->fonction3 = $fonction3;
}
/**
* @return mixed
*/
public function getTel3()
{
return $this->tel3;
}
/**
* @param mixed $tel3
*/
public function setTel3($tel3): void
{
$this->tel3 = $tel3;
}
/**
* @return mixed
*/
public function getMobile3()
{
return $this->mobile3;
}
/**
* @param mixed $mobile3
*/
public function setMobile3($mobile3): void
{
$this->mobile3 = $mobile3;
}
/**
* @param mixed $email3
*/
public function setEmail3($email3): void
{
$this->email3 = $email3;
}
public function getPlustard()
{
return $this->plustard;
}
public function setPlustard(string $plustard): void
{
$this->plustard = $plustard;
}
public function getPlustot()
{
return $this->plustot;
}
public function setPlustot(string $plustot): void
{
$this->plustot = $plustot;
}
public function getConditionReglement()
{
return $this->conditionReglement;
}
public function setConditionReglement(string $conditionReglement): void
{
$this->conditionReglement = $conditionReglement;
}
}