src/Entity/Client.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use JMS\Serializer\Annotation\ExclusionPolicy;
  5. use JMS\Serializer\Annotation\Exclude;
  6. use JMS\Serializer\Annotation\Expose;
  7. use JMS\Serializer\Annotation\MaxDepth;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. /**
  10. * Client
  11. *
  12. * @ORM\Table(name="client", options={"collate"="latin1_general_ci","charset"="latin1"})
  13. * @ORM\Entity(repositoryClass="App\Repository\ClientRepository")
  14. * @ExclusionPolicy("all")
  15. */
  16. class Client
  17. {
  18. /**
  19. * @var integer
  20. *
  21. * @ORM\Column(name="id", type="integer", nullable=false)
  22. * @ORM\Id
  23. * @ORM\GeneratedValue(strategy="IDENTITY")
  24. * @Expose
  25. */
  26. private $id;
  27. /**
  28. * @var string
  29. *
  30. * @ORM\Column(name="source", type="string", length=10, nullable=false)
  31. */
  32. private $source;
  33. /**
  34. * @ORM\ManyToOne(targetEntity="App\Entity\Admin", inversedBy="clients", cascade={"persist"})
  35. * @ORM\JoinColumn(nullable=false)
  36. * @Expose
  37. */
  38. private $idadmin;
  39. /**
  40. * @var integer
  41. *
  42. * @ORM\Column(name="idnumber", type="integer", nullable=false)
  43. */
  44. private $idnumber;
  45. /**
  46. * @var string
  47. *
  48. * @ORM\Column(name="reference", type="string", length=50, nullable=true)
  49. */
  50. private $reference;
  51. /**
  52. * @var string
  53. *
  54. * @ORM\Column(name="serviceclient", type="string", length=50, nullable=true)
  55. */
  56. private $serviceclient;
  57. /**
  58. * @var boolean
  59. *
  60. * @ORM\Column(name="prospect", type="boolean", nullable=false)
  61. */
  62. private $prospect;
  63. /**
  64. * @var float
  65. *
  66. * @ORM\Column(name="prospectCA", type="decimal", nullable=true, precision=8, scale=2)
  67. */
  68. private $prospectca;
  69. /**
  70. * @var \DateTime
  71. *
  72. * @ORM\Column(name="datefr", type="date", nullable=false)
  73. */
  74. private $datefr;
  75. /**
  76. * @var \DateTime
  77. *
  78. * @ORM\Column(name="dateclientfr", type="date", nullable=false)
  79. */
  80. private $dateclientfr;
  81. /**
  82. * @var string
  83. *
  84. * @ORM\Column(name="user", type="string", length=11, nullable=true)
  85. */
  86. private $user;
  87. /**
  88. * @var string
  89. *
  90. * @ORM\Column(name="password", type="string", length=11, nullable=true)
  91. */
  92. private $password;
  93. /**
  94. * @var string
  95. *
  96. * @ORM\Column(name="nom", type="string", length=150, nullable=false)
  97. * @Expose
  98. */
  99. private $nom;
  100. /**
  101. * @var string
  102. *
  103. * @ORM\Column(name="raison", type="string", length=150, nullable=true)
  104. * @Expose
  105. */
  106. private $raison;
  107. /**
  108. * @var string
  109. *
  110. * @ORM\Column(name="contact", type="string", length=100, nullable=true)
  111. */
  112. private $contact;
  113. /**
  114. * @var string
  115. *
  116. * @ORM\Column(name="fonction", type="string", length=100, nullable=true)
  117. */
  118. private $fonction;
  119. /**
  120. * @var string
  121. *
  122. * @ORM\Column(name="nomchef", type="string", length=150, nullable=true)
  123. */
  124. private $nomchef;
  125. /**
  126. * @var string
  127. *
  128. * @ORM\Column(name="mobilechef", type="string", length=30, nullable=true)
  129. */
  130. private $mobilechef;
  131. /**
  132. * @ORM\Column(type="boolean", options={"default" : 0})
  133. */
  134. private $utilisateurPrestachef = false;
  135. // CONTACT 2
  136. /**
  137. * @ORM\Column(type="string", length=255,nullable=true)
  138. */
  139. private $contact2;
  140. /**
  141. * @ORM\Column(type="string", length=255,nullable=true)
  142. */
  143. private $fonction2;
  144. /**
  145. * @ORM\Column(type="string", length=20, nullable=true)
  146. */
  147. private $tel2;
  148. /**
  149. * @ORM\Column(type="string", length=20,nullable=true)
  150. */
  151. private $mobile2;
  152. /**
  153. * @ORM\Column(type="string", length=255,nullable=true)
  154. */
  155. private $email2;
  156. /**
  157. * @ORM\Column(type="boolean", options={"default" : 0})
  158. */
  159. private $utilisateurPrestachef2 = false;
  160. // CONTACT 3
  161. /**
  162. * @ORM\Column(type="string", length=255,nullable=true)
  163. */
  164. private $contact3;
  165. /**
  166. * @ORM\Column(type="string", length=255,nullable=true)
  167. */
  168. private $fonction3;
  169. /**
  170. * @ORM\Column(type="string", length=20, nullable=true,nullable=true)
  171. */
  172. private $tel3;
  173. /**
  174. * @ORM\Column(type="string", length=20,nullable=true)
  175. */
  176. private $mobile3;
  177. /**
  178. * @ORM\Column(type="string", length=255,nullable=true)
  179. */
  180. private $email3;
  181. /**
  182. * @ORM\Column(type="boolean", options={"default" : 0})
  183. */
  184. private $utilisateurPrestachef3 = false;
  185. // CONTACT 4
  186. /**
  187. * @ORM\Column(type="string", length=255,nullable=true)
  188. */
  189. private $contact4;
  190. /**
  191. * @ORM\Column(type="string", length=255,nullable=true)
  192. */
  193. private $fonction4;
  194. /**
  195. * @ORM\Column(type="string", length=20, nullable=true,nullable=true)
  196. */
  197. private $tel4;
  198. /**
  199. * @ORM\Column(type="string", length=20,nullable=true)
  200. */
  201. private $mobile4;
  202. /**
  203. * @ORM\Column(type="string", length=255,nullable=true)
  204. */
  205. private $email4;
  206. /**
  207. * @ORM\Column(type="boolean", options={"default" : 0})
  208. */
  209. private $utilisateurPrestachef4 = false;
  210. /**
  211. * @ORM\Column(type="boolean", options={"default" : 0})
  212. */
  213. private $envoieFacture = false;
  214. /**
  215. * @var integer
  216. *
  217. * @ORM\Column(name="nbcouvertj", type="integer", nullable=true)
  218. */
  219. private $nbcouvertj;
  220. /**
  221. * @var integer
  222. *
  223. * @ORM\Column(name="nbhectolitre", type="integer", nullable=true)
  224. */
  225. private $nbhectolitre;
  226. /**
  227. * @var string
  228. *
  229. * @ORM\Column(name="marquebiere", type="string", nullable=true)
  230. */
  231. private $marquebiere;
  232. /**
  233. * @var integer
  234. *
  235. * @ORM\Column(name="contrat", type="integer", nullable=true)
  236. */
  237. private $contrat;
  238. /**
  239. * @var string
  240. *
  241. * @ORM\Column(name="distributeurboisson", type="string", nullable=true)
  242. */
  243. private $distributeurboisson;
  244. /**
  245. * @var \DateTime
  246. *
  247. * @ORM\Column(name="datedebutcontrat", type="date", nullable=true)
  248. */
  249. private $datedebutcontrat;
  250. /**
  251. * @var \DateTime
  252. *
  253. * @ORM\Column(name="datefincontrat", type="date", nullable=true)
  254. */
  255. private $datefincontrat;
  256. /**
  257. * @var integer
  258. *
  259. * @ORM\Column(name="typecontrat", type="integer", nullable=true)
  260. */
  261. private $typecontrat;
  262. /**
  263. * @var integer
  264. *
  265. * @ORM\Column(name="montantcontrat", type="integer", nullable=true)
  266. */
  267. private $montantcontrat;
  268. /**
  269. * @var integer
  270. *
  271. * @ORM\Column(name="typeaffaire", type="integer", nullable=true)
  272. */
  273. private $typeaffaire;
  274. /**
  275. * @var float
  276. *
  277. * @ORM\Column(name="cagnottemalys", type="decimal", nullable=true, precision=8, scale=2)
  278. */
  279. private $cagnottemalys;
  280. /**
  281. * @var string
  282. *
  283. * @ORM\Column(name="heurelivre", type="text", nullable=true)
  284. */
  285. private $heurelivre;
  286. /**
  287. * @var string
  288. *
  289. * @ORM\Column(name="comment", type="text", nullable=true)
  290. */
  291. private $comment;
  292. /**
  293. * @var string
  294. *
  295. * @ORM\Column(name="infolivre", type="text", nullable=true)
  296. */
  297. private $infolivre;
  298. /**
  299. * @var string
  300. *
  301. * @ORM\Column(name="adresse", type="string", length=150, nullable=true)
  302. * @Expose
  303. */
  304. private $adresse;
  305. /**
  306. * @var string
  307. *
  308. * @ORM\Column(name="cp", type="string", length=10, nullable=true)
  309. * @Expose
  310. */
  311. private $cp;
  312. /**
  313. * @var string
  314. *
  315. * @ORM\Column(name="ville", type="string", length=100, nullable=true)
  316. * @Expose
  317. */
  318. private $ville;
  319. /**
  320. * @var string
  321. *
  322. * @ORM\Column(name="pays", type="string", length=2, nullable=true)
  323. * @Expose
  324. */
  325. private $pays;
  326. /**
  327. * @var string
  328. *
  329. * @ORM\Column(name="tel", type="string", length=30, nullable=true)
  330. * @Expose
  331. */
  332. private $tel;
  333. /**
  334. * @var string
  335. *
  336. * @ORM\Column(name="mobile", type="string", length=30, nullable=true)
  337. */
  338. private $mobile;
  339. /**
  340. * @var string
  341. *
  342. * @ORM\Column(name="fax", type="string", length=30, nullable=true)
  343. */
  344. private $fax;
  345. /**
  346. * @var string
  347. *
  348. * @ORM\Column(name="email", type="string", length=150, nullable=true)
  349. * @Expose
  350. */
  351. private $email;
  352. /**
  353. * @var string
  354. *
  355. * @ORM\Column(name="site", type="string", length=150, nullable=true)
  356. */
  357. private $site;
  358. /**
  359. * @var float
  360. *
  361. * @ORM\Column(name="reversement", type="decimal", nullable=false, precision=8, scale=2)
  362. */
  363. private $reversement;
  364. /**
  365. * @var integer
  366. *
  367. * @ORM\Column(name="note", type="smallint", nullable=false)
  368. */
  369. private $note;
  370. /**
  371. * @var boolean
  372. *
  373. * @ORM\Column(name="activite", type="boolean", nullable=false)
  374. */
  375. private $activite;
  376. /**
  377. * @var boolean
  378. *
  379. * @ORM\Column(name="affiche", type="boolean", nullable=false)
  380. */
  381. private $affiche;
  382. /**
  383. * @var string
  384. *
  385. * @ORM\Column(name="geocode", type="string", length=150, nullable=true)
  386. */
  387. private $geocode;
  388. /**
  389. * @var string
  390. *
  391. * @ORM\Column(name="nom_chef", type="string", length=150, nullable=true)
  392. */
  393. private $nom_chef;
  394. /**
  395. * @var string
  396. *
  397. * @ORM\Column(name="mail_chef", type="string", length=150, nullable=true)
  398. */
  399. private $mailChef;
  400. /**
  401. * @var string
  402. *
  403. * @ORM\Column(name="nom_patron", type="string", length=150, nullable=true)
  404. */
  405. private $nomPatron;
  406. /**
  407. * @var string
  408. *
  409. * @ORM\Column(name="mail_patron", type="string", length=150, nullable=true)
  410. */
  411. private $mailPatron;
  412. /**
  413. * @var string
  414. *
  415. * @ORM\Column(name="nom_achat", type="string", length=110, nullable=true)
  416. */
  417. private $nomAchat;
  418. /**
  419. * @var string
  420. *
  421. * @ORM\Column(name="mail_achat", type="string", length=110, nullable=true)
  422. */
  423. private $mailAchat;
  424. /**
  425. * @ORM\OneToMany(targetEntity="App\Entity\Clientrelation", mappedBy="idclient")
  426. */
  427. private $clientRelation;
  428. /**
  429. * @var string
  430. *
  431. * @ORM\Column(name="siret", type="string", length=255, nullable=true)
  432. * @Expose
  433. */
  434. private $siret;
  435. /**
  436. * @ORM\Column(type="json", nullable=true)
  437. */
  438. private $joursLivraison = [];
  439. /**
  440. * @ORM\Column(type="boolean", nullable=false)
  441. */
  442. private $clesADisposition = false;
  443. /**
  444. * @ORM\Column(type="boolean", nullable=true)
  445. */
  446. private $sameAsAdresse = false;
  447. /**
  448. * @ORM\Column(type="string", length=255, nullable=true)
  449. */
  450. private $adresseFacturation;
  451. /**
  452. * @ORM\Column(type="string", length=10, nullable=true)
  453. */
  454. private $cpFacturation;
  455. /**
  456. * @ORM\Column(type="string", length=100, nullable=true)
  457. */
  458. private $villeFacturation;
  459. /**
  460. * @var string
  461. *
  462. * @ORM\Column(name="plustot", type="string", length=150, nullable=true)
  463. */
  464. private $plustot;
  465. /**
  466. * @var string
  467. *
  468. * @ORM\Column(name="plustard", type="string", length=150, nullable=true)
  469. */
  470. private $plustard;
  471. /**
  472. * @var string
  473. *
  474. * @ORM\Column(name="condition_reglement", type="string", length=150, nullable=true)
  475. */
  476. private $conditionReglement;
  477. public function getAdresseFacturation()
  478. {
  479. return $this->adresseFacturation;
  480. }
  481. public function setAdresseFacturation($adresseFacturation)
  482. {
  483. $this->adresseFacturation = $adresseFacturation;
  484. return $this;
  485. }
  486. public function getCpFacturation()
  487. {
  488. return $this->cpFacturation;
  489. }
  490. public function setCpFacturation($cpFacturation)
  491. {
  492. $this->cpFacturation = $cpFacturation;
  493. return $this;
  494. }
  495. public function isEnvoieFacture(): bool
  496. {
  497. return $this->envoieFacture;
  498. }
  499. public function setEnvoieFacture(bool $envoieFacture): void
  500. {
  501. $this->envoieFacture = $envoieFacture;
  502. }
  503. public function getVilleFacturation()
  504. {
  505. return $this->villeFacturation;
  506. }
  507. public function setVilleFacturation($villeFacturation)
  508. {
  509. $this->villeFacturation = $villeFacturation;
  510. return $this;
  511. }
  512. public function getClesADisposition(): bool
  513. {
  514. return (bool)$this->clesADisposition;
  515. }
  516. public function setClesADisposition(bool $clesADisposition): self
  517. {
  518. $this->clesADisposition = $clesADisposition;
  519. return $this;
  520. }
  521. public function getJoursLivraison()
  522. {
  523. return $this->joursLivraison;
  524. }
  525. public function setJoursLivraison($joursLivraison)
  526. {
  527. $this->joursLivraison = $joursLivraison;
  528. }
  529. public function isUtilisateurPrestachef(): bool
  530. {
  531. return $this->utilisateurPrestachef;
  532. }
  533. public function setUtilisateurPrestachef(bool $utilisateurPrestachef): void
  534. {
  535. $this->utilisateurPrestachef = $utilisateurPrestachef;
  536. }
  537. public function isUtilisateurPrestachef2(): bool
  538. {
  539. return $this->utilisateurPrestachef2;
  540. }
  541. public function setUtilisateurPrestachef2(bool $utilisateurPrestachef2): void
  542. {
  543. $this->utilisateurPrestachef2 = $utilisateurPrestachef2;
  544. }
  545. public function isUtilisateurPrestachef3(): bool
  546. {
  547. return $this->utilisateurPrestachef3;
  548. }
  549. public function setUtilisateurPrestachef3(bool $utilisateurPrestachef3): void
  550. {
  551. $this->utilisateurPrestachef3 = $utilisateurPrestachef3;
  552. }
  553. /**
  554. * @return mixed
  555. */
  556. public function getContact4()
  557. {
  558. return $this->contact4;
  559. }
  560. /**
  561. * @param mixed $contact4
  562. */
  563. public function setContact4($contact4): void
  564. {
  565. $this->contact4 = $contact4;
  566. }
  567. /**
  568. * @return mixed
  569. */
  570. public function getFonction4()
  571. {
  572. return $this->fonction4;
  573. }
  574. /**
  575. * @param mixed $fonction4
  576. */
  577. public function setFonction4($fonction4): void
  578. {
  579. $this->fonction4 = $fonction4;
  580. }
  581. /**
  582. * @return mixed
  583. */
  584. public function getTel4()
  585. {
  586. return $this->tel4;
  587. }
  588. /**
  589. * @param mixed $tel4
  590. */
  591. public function setTel4($tel4): void
  592. {
  593. $this->tel4 = $tel4;
  594. }
  595. /**
  596. * @return mixed
  597. */
  598. public function getMobile4()
  599. {
  600. return $this->mobile4;
  601. }
  602. /**
  603. * @param mixed $mobile4
  604. */
  605. public function setMobile4($mobile4): void
  606. {
  607. $this->mobile4 = $mobile4;
  608. }
  609. /**
  610. * @return mixed
  611. */
  612. public function getEmail4()
  613. {
  614. return $this->email4;
  615. }
  616. /**
  617. * @param mixed $email4
  618. */
  619. public function setEmail4($email4): void
  620. {
  621. $this->email4 = $email4;
  622. }
  623. public function isUtilisateurPrestachef4(): bool
  624. {
  625. return $this->utilisateurPrestachef4;
  626. }
  627. public function setUtilisateurPrestachef4(bool $utilisateurPrestachef4): void
  628. {
  629. $this->utilisateurPrestachef4 = $utilisateurPrestachef4;
  630. }
  631. /* VALEURS PAR DEFAUT */
  632. public function __construct()
  633. {
  634. $this->source = 'malys';
  635. $this->idnumber = 1;
  636. $this->reference = '';
  637. $this->serviceclient = '';
  638. $this->prospect = true;
  639. $this->pays = 'FR';
  640. $this->reversement = 0;
  641. $this->activite = true;
  642. $this->sameAsAdresse = true;
  643. $this->geocode = '0|0';
  644. $this->nom_chef = '';
  645. $this->user = '';
  646. $this->mailChef = '';
  647. $this->nomPatron = '';
  648. $this->mailPatron = '';
  649. $this->nomAchat = '';
  650. $this->siret = '';
  651. $this->mailAchat = '';
  652. $this->marquebiere = '';
  653. $this->infolivre = '';
  654. $this->distributeurboisson = '';
  655. $this->datefr = new \DateTime("now");
  656. $this->dateclientfr = new \DateTime("now");
  657. $this->affiche = true;
  658. $this->note = 2;
  659. }
  660. /**
  661. * Get id
  662. *
  663. * @return integer
  664. */
  665. public function getId()
  666. {
  667. return $this->id;
  668. }
  669. /**
  670. * Set source
  671. *
  672. * @param string $source
  673. *
  674. * @return Client
  675. */
  676. public function setSource($source)
  677. {
  678. $this->source = $source;
  679. return $this;
  680. }
  681. /**
  682. * Get source
  683. *
  684. * @return string
  685. */
  686. public function getSource()
  687. {
  688. return $this->source;
  689. }
  690. /**
  691. * Set idnumber
  692. *
  693. * @param integer $idnumber
  694. *
  695. * @return Client
  696. */
  697. public function setIdnumber($idnumber)
  698. {
  699. $this->idnumber = $idnumber;
  700. return $this;
  701. }
  702. /**
  703. * Get idnumber
  704. *
  705. * @return integer
  706. */
  707. public function getIdnumber()
  708. {
  709. return $this->idnumber;
  710. }
  711. /**
  712. * Set reference
  713. *
  714. * @param string $reference
  715. *
  716. * @return Client
  717. */
  718. public function setReference($reference)
  719. {
  720. $this->reference = $reference;
  721. return $this;
  722. }
  723. /**
  724. * Get reference
  725. *
  726. * @return string
  727. */
  728. public function getReference()
  729. {
  730. return $this->reference;
  731. }
  732. /**
  733. * Set serviceclient
  734. *
  735. * @param string $serviceclient
  736. *
  737. * @return Client
  738. */
  739. public function setServiceclient($serviceclient)
  740. {
  741. $this->serviceclient = $serviceclient;
  742. return $this;
  743. }
  744. /**
  745. * Get serviceclient
  746. *
  747. * @return string
  748. */
  749. public function getServiceclient()
  750. {
  751. return $this->serviceclient;
  752. }
  753. /**
  754. * Set prospect
  755. *
  756. * @param boolean $prospect
  757. *
  758. * @return Client
  759. */
  760. public function setProspect($prospect)
  761. {
  762. $this->prospect = $prospect;
  763. return $this;
  764. }
  765. /**
  766. * Get prospect
  767. *
  768. * @return boolean
  769. */
  770. public function getProspect()
  771. {
  772. return $this->prospect;
  773. }
  774. /**
  775. * Set prospectca
  776. *
  777. * @param float $prospectca
  778. *
  779. * @return Client
  780. */
  781. public function setProspectca($prospectca)
  782. {
  783. $this->prospectca = $prospectca;
  784. return $this;
  785. }
  786. /**
  787. * Get prospectca
  788. *
  789. * @return float
  790. */
  791. public function getProspectca()
  792. {
  793. return $this->prospectca;
  794. }
  795. /**
  796. * Set datefr
  797. *
  798. * @param \DateTime $datefr
  799. *
  800. * @return Client
  801. */
  802. public function setDatefr($datefr)
  803. {
  804. $this->datefr = $datefr;
  805. return $this;
  806. }
  807. /**
  808. * Get datefr
  809. *
  810. * @return \DateTime
  811. */
  812. public function getDatefr()
  813. {
  814. return $this->datefr;
  815. }
  816. /**
  817. * Set dateclientfr
  818. *
  819. * @param \DateTime $dateclientfr
  820. *
  821. * @return Client
  822. */
  823. public function setDateclientfr($dateclientfr)
  824. {
  825. $this->dateclientfr = $dateclientfr;
  826. return $this;
  827. }
  828. /**
  829. * Get dateclientfr
  830. *
  831. * @return \DateTime
  832. */
  833. public function getDateclientfr()
  834. {
  835. return $this->dateclientfr;
  836. }
  837. /**
  838. * Set user
  839. *
  840. * @param string $user
  841. *
  842. * @return Client
  843. */
  844. public function setUser($user)
  845. {
  846. $this->user = $user;
  847. return $this;
  848. }
  849. /**
  850. * Get user
  851. *
  852. * @return string
  853. */
  854. public function getUser()
  855. {
  856. return $this->user;
  857. }
  858. /**
  859. * Set password
  860. *
  861. * @param string $password
  862. *
  863. * @return Client
  864. */
  865. public function setPassword($password)
  866. {
  867. $this->password = $password;
  868. return $this;
  869. }
  870. /**
  871. * Get password
  872. *
  873. * @return string
  874. */
  875. public function getPassword()
  876. {
  877. return $this->password;
  878. }
  879. /**
  880. * Set nom
  881. *
  882. * @param string $nom
  883. *
  884. * @return Client
  885. */
  886. public function setNom($nom)
  887. {
  888. $this->nom = $nom;
  889. return $this;
  890. }
  891. /**
  892. * Get nom
  893. *
  894. * @return string
  895. */
  896. public function getNom()
  897. {
  898. return $this->nom;
  899. }
  900. /**
  901. * Set raison
  902. *
  903. * @param string $raison
  904. *
  905. * @return Client
  906. */
  907. public function setRaison($raison)
  908. {
  909. $this->raison = $raison;
  910. return $this;
  911. }
  912. /**
  913. * Get raison
  914. *
  915. * @return string
  916. */
  917. public function getRaison()
  918. {
  919. return $this->raison;
  920. }
  921. /**
  922. * Set contact
  923. *
  924. * @param string $contact
  925. *
  926. * @return Client
  927. */
  928. public function setContact($contact)
  929. {
  930. $this->contact = $contact;
  931. return $this;
  932. }
  933. /**
  934. * Get contact
  935. *
  936. * @return string
  937. */
  938. public function getContact()
  939. {
  940. return $this->contact;
  941. }
  942. /**
  943. * Set fonction
  944. *
  945. * @param string $fonction
  946. *
  947. * @return Client
  948. */
  949. public function setFonction($fonction)
  950. {
  951. $this->fonction = $fonction;
  952. return $this;
  953. }
  954. /**
  955. * Get fonction
  956. *
  957. * @return string
  958. */
  959. public function getFonction()
  960. {
  961. return $this->fonction;
  962. }
  963. /**
  964. * Set nomchef
  965. *
  966. * @param string $nomchef
  967. *
  968. * @return Client
  969. */
  970. public function setNomchef($nomchef)
  971. {
  972. $this->nomchef = $nomchef;
  973. return $this;
  974. }
  975. /**
  976. * Get nomchef
  977. *
  978. * @return string
  979. */
  980. public function getNomchef()
  981. {
  982. return $this->nomchef;
  983. }
  984. /**
  985. * Set mobilechef
  986. *
  987. * @param string $mobilechef
  988. *
  989. * @return Client
  990. */
  991. public function setMobilechef($mobilechef)
  992. {
  993. $this->mobilechef = $mobilechef;
  994. return $this;
  995. }
  996. /**
  997. * Get mobilechef
  998. *
  999. * @return string
  1000. */
  1001. public function getMobilechef()
  1002. {
  1003. return $this->mobilechef;
  1004. }
  1005. /**
  1006. * Set nbcouvertj
  1007. *
  1008. * @param integer $nbcouvertj
  1009. *
  1010. * @return Client
  1011. */
  1012. public function setNbcouvertj($nbcouvertj)
  1013. {
  1014. $this->nbcouvertj = $nbcouvertj;
  1015. return $this;
  1016. }
  1017. /**
  1018. * Get nbcouvertj
  1019. *
  1020. * @return integer
  1021. */
  1022. public function getNbcouvertj()
  1023. {
  1024. return $this->nbcouvertj;
  1025. }
  1026. /**
  1027. * Set typeaffaire
  1028. *
  1029. * @param integer $typeaffaire
  1030. *
  1031. * @return Client
  1032. */
  1033. public function setTypeaffaire($typeaffaire)
  1034. {
  1035. $this->typeaffaire = $typeaffaire;
  1036. return $this;
  1037. }
  1038. /**
  1039. * Get typeaffaire
  1040. *
  1041. * @return integer
  1042. */
  1043. public function getTypeaffaire()
  1044. {
  1045. return $this->typeaffaire;
  1046. }
  1047. /**
  1048. * Set heurelivre
  1049. *
  1050. * @param string $heurelivre
  1051. *
  1052. * @return Client
  1053. */
  1054. public function setHeurelivre($heurelivre)
  1055. {
  1056. $this->heurelivre = $heurelivre;
  1057. return $this;
  1058. }
  1059. /**
  1060. * Get heurelivre
  1061. *
  1062. * @return string
  1063. */
  1064. public function getHeurelivre()
  1065. {
  1066. return $this->heurelivre;
  1067. }
  1068. /**
  1069. * Set comment
  1070. *
  1071. * @param string $comment
  1072. *
  1073. * @return Client
  1074. */
  1075. public function setComment($comment)
  1076. {
  1077. $this->comment = $comment;
  1078. return $this;
  1079. }
  1080. /**
  1081. * Get comment
  1082. *
  1083. * @return string
  1084. */
  1085. public function getComment()
  1086. {
  1087. return $this->comment;
  1088. }
  1089. /**
  1090. * Set adresse
  1091. *
  1092. * @param string $adresse
  1093. *
  1094. * @return Client
  1095. */
  1096. public function setAdresse($adresse)
  1097. {
  1098. $this->adresse = $adresse;
  1099. return $this;
  1100. }
  1101. /**
  1102. * Get adresse
  1103. *
  1104. * @return string
  1105. */
  1106. public function getAdresse()
  1107. {
  1108. return $this->adresse;
  1109. }
  1110. /**
  1111. * Set cp
  1112. *
  1113. * @param string $cp
  1114. *
  1115. * @return Client
  1116. */
  1117. public function setCp($cp)
  1118. {
  1119. $this->cp = $cp;
  1120. return $this;
  1121. }
  1122. /**
  1123. * Get cp
  1124. *
  1125. * @return string
  1126. */
  1127. public function getCp()
  1128. {
  1129. return $this->cp;
  1130. }
  1131. /**
  1132. * Set ville
  1133. *
  1134. * @param string $ville
  1135. *
  1136. * @return Client
  1137. */
  1138. public function setVille($ville)
  1139. {
  1140. $this->ville = $ville;
  1141. return $this;
  1142. }
  1143. /**
  1144. * Get ville
  1145. *
  1146. * @return string
  1147. */
  1148. public function getVille()
  1149. {
  1150. return $this->ville;
  1151. }
  1152. /**
  1153. * Set pays
  1154. *
  1155. * @param string $pays
  1156. *
  1157. * @return Client
  1158. */
  1159. public function setPays($pays)
  1160. {
  1161. $this->pays = $pays;
  1162. return $this;
  1163. }
  1164. /**
  1165. * Get pays
  1166. *
  1167. * @return string
  1168. */
  1169. public function getPays()
  1170. {
  1171. return $this->pays;
  1172. }
  1173. /**
  1174. * Set tel
  1175. *
  1176. * @param string $tel
  1177. *
  1178. * @return Client
  1179. */
  1180. public function setTel($tel)
  1181. {
  1182. $this->tel = $tel;
  1183. return $this;
  1184. }
  1185. /**
  1186. * Get tel
  1187. *
  1188. * @return string
  1189. */
  1190. public function getTel()
  1191. {
  1192. return $this->tel;
  1193. }
  1194. /**
  1195. * Set mobile
  1196. *
  1197. * @param string $mobile
  1198. *
  1199. * @return Client
  1200. */
  1201. public function setMobile($mobile)
  1202. {
  1203. $this->mobile = $mobile;
  1204. return $this;
  1205. }
  1206. /**
  1207. * Get mobile
  1208. *
  1209. * @return string
  1210. */
  1211. public function getMobile()
  1212. {
  1213. return $this->mobile;
  1214. }
  1215. /**
  1216. * Set fax
  1217. *
  1218. * @param string $fax
  1219. *
  1220. * @return Client
  1221. */
  1222. public function setFax($fax)
  1223. {
  1224. $this->fax = $fax;
  1225. return $this;
  1226. }
  1227. /**
  1228. * Get fax
  1229. *
  1230. * @return string
  1231. */
  1232. public function getFax()
  1233. {
  1234. return $this->fax;
  1235. }
  1236. /**
  1237. * Set email
  1238. *
  1239. * @param string $email
  1240. *
  1241. * @return Client
  1242. */
  1243. public function setEmail($email)
  1244. {
  1245. $this->email = $email;
  1246. return $this;
  1247. }
  1248. /**
  1249. * Get email
  1250. *
  1251. * @return string
  1252. */
  1253. public function getEmail()
  1254. {
  1255. return $this->email;
  1256. }
  1257. /**
  1258. * Set site
  1259. *
  1260. * @param string $site
  1261. *
  1262. * @return Client
  1263. */
  1264. public function setSite($site)
  1265. {
  1266. $this->site = $site;
  1267. return $this;
  1268. }
  1269. /**
  1270. * Get site
  1271. *
  1272. * @return string
  1273. */
  1274. public function getSite()
  1275. {
  1276. return $this->site;
  1277. }
  1278. /**
  1279. * Set reversement
  1280. *
  1281. * @param float $reversement
  1282. *
  1283. * @return Client
  1284. */
  1285. public function setReversement($reversement)
  1286. {
  1287. $this->reversement = $reversement;
  1288. return $this;
  1289. }
  1290. /**
  1291. * Get reversement
  1292. *
  1293. * @return float
  1294. */
  1295. public function getReversement()
  1296. {
  1297. return $this->reversement;
  1298. }
  1299. /**
  1300. * @param string $note
  1301. * @return $this
  1302. */
  1303. public function setNote($note)
  1304. {
  1305. $this->note = $note;
  1306. return $this;
  1307. }
  1308. /**
  1309. * Get note
  1310. *
  1311. * @return boolean
  1312. */
  1313. public function getNote(): bool
  1314. {
  1315. return $this->note;
  1316. }
  1317. /**
  1318. * Set activite
  1319. *
  1320. * @param boolean $activite
  1321. *
  1322. * @return Client
  1323. */
  1324. public function setActivite($activite)
  1325. {
  1326. $this->activite = $activite;
  1327. return $this;
  1328. }
  1329. /**
  1330. * Get activite
  1331. *
  1332. * @return boolean
  1333. */
  1334. public function getActivite()
  1335. {
  1336. return $this->activite;
  1337. }
  1338. /**
  1339. * Set affiche
  1340. *
  1341. * @param boolean $affiche
  1342. *
  1343. * @return Client
  1344. */
  1345. public function setAffiche($affiche)
  1346. {
  1347. $this->affiche = $affiche;
  1348. return $this;
  1349. }
  1350. /**
  1351. * Get affiche
  1352. *
  1353. * @return boolean
  1354. */
  1355. public function getAffiche()
  1356. {
  1357. return $this->affiche;
  1358. }
  1359. /**
  1360. * Set geocode
  1361. *
  1362. * @param string $geocode
  1363. *
  1364. * @return Client
  1365. */
  1366. public function setGeocode($geocode)
  1367. {
  1368. $this->geocode = $geocode;
  1369. return $this;
  1370. }
  1371. /**
  1372. * Get geocode
  1373. *
  1374. * @return string
  1375. */
  1376. public function getGeocode()
  1377. {
  1378. return $this->geocode;
  1379. }
  1380. /**
  1381. * Set nom_chef
  1382. *
  1383. * @param string $nomChef
  1384. *
  1385. * @return Client
  1386. */
  1387. public function setNom_Chef($nomChef)
  1388. {
  1389. $this->nom_chef = $nomChef;
  1390. return $this;
  1391. }
  1392. /**
  1393. * Get nom_chef
  1394. *
  1395. * @return string
  1396. */
  1397. public function getNom_Chef()
  1398. {
  1399. return $this->nom_chef;
  1400. }
  1401. /**
  1402. * Set mailChef
  1403. *
  1404. * @param string $mailChef
  1405. *
  1406. * @return Client
  1407. */
  1408. public function setMailChef($mailChef)
  1409. {
  1410. $this->mailChef = $mailChef;
  1411. return $this;
  1412. }
  1413. /**
  1414. * Get mailChef
  1415. *
  1416. * @return string
  1417. */
  1418. public function getMailChef()
  1419. {
  1420. return $this->mailChef;
  1421. }
  1422. /**
  1423. * Set nomPatron
  1424. *
  1425. * @param string $nomPatron
  1426. *
  1427. * @return Client
  1428. */
  1429. public function setNomPatron($nomPatron)
  1430. {
  1431. $this->nomPatron = $nomPatron;
  1432. return $this;
  1433. }
  1434. /**
  1435. * Get nomPatron
  1436. *
  1437. * @return string
  1438. */
  1439. public function getNomPatron()
  1440. {
  1441. return $this->nomPatron;
  1442. }
  1443. /**
  1444. * Set mailPatron
  1445. *
  1446. * @param string $mailPatron
  1447. *
  1448. * @return Client
  1449. */
  1450. public function setMailPatron($mailPatron)
  1451. {
  1452. $this->mailPatron = $mailPatron;
  1453. return $this;
  1454. }
  1455. /**
  1456. * Get mailPatron
  1457. *
  1458. * @return string
  1459. */
  1460. public function getMailPatron()
  1461. {
  1462. return $this->mailPatron;
  1463. }
  1464. /**
  1465. * Set nomAchat
  1466. *
  1467. * @param string $nomAchat
  1468. *
  1469. * @return Client
  1470. */
  1471. public function setNomAchat($nomAchat)
  1472. {
  1473. $this->nomAchat = $nomAchat;
  1474. return $this;
  1475. }
  1476. /**
  1477. * Get nomAchat
  1478. *
  1479. * @return string
  1480. */
  1481. public function getNomAchat()
  1482. {
  1483. return $this->nomAchat;
  1484. }
  1485. /**
  1486. * Set mailAchat
  1487. *
  1488. * @param string $mailAchat
  1489. *
  1490. * @return Client
  1491. */
  1492. public function setMailAchat($mailAchat)
  1493. {
  1494. $this->mailAchat = $mailAchat;
  1495. return $this;
  1496. }
  1497. /**
  1498. * Get mailAchat
  1499. *
  1500. * @return string
  1501. */
  1502. public function getMailAchat()
  1503. {
  1504. return $this->mailAchat;
  1505. }
  1506. /**
  1507. * Set idadmin
  1508. *
  1509. * @param Admin $idadmin
  1510. *
  1511. * @return Client
  1512. */
  1513. public function setIdadmin(Admin $idadmin)
  1514. {
  1515. $this->idadmin = $idadmin;
  1516. return $this;
  1517. }
  1518. /**
  1519. * Get idadmin
  1520. *
  1521. * @return Admin
  1522. */
  1523. public function getIdadmin()
  1524. {
  1525. return $this->idadmin;
  1526. }
  1527. /**
  1528. * Get clientRelation
  1529. *
  1530. * @return Clientrelation
  1531. */
  1532. public function getClientRelation()
  1533. {
  1534. return $this->clientRelation;
  1535. }
  1536. /**
  1537. * Set nbhectolitre
  1538. *
  1539. * @param integer $nbhectolitre
  1540. *
  1541. * @return Client
  1542. */
  1543. public function setNbhectolitre($nbhectolitre)
  1544. {
  1545. $this->nbhectolitre = $nbhectolitre;
  1546. return $this;
  1547. }
  1548. /**
  1549. * Get nbhectolitre
  1550. *
  1551. * @return integer
  1552. */
  1553. public function getNbhectolitre()
  1554. {
  1555. return $this->nbhectolitre;
  1556. }
  1557. /**
  1558. * Set marquebiere
  1559. *
  1560. * @param string $marquebiere
  1561. *
  1562. * @return Client
  1563. */
  1564. public function setMarquebiere($marquebiere)
  1565. {
  1566. $this->marquebiere = $marquebiere;
  1567. return $this;
  1568. }
  1569. /**
  1570. * Get marquebiere
  1571. *
  1572. * @return string
  1573. */
  1574. public function getMarquebiere()
  1575. {
  1576. return $this->marquebiere;
  1577. }
  1578. /**
  1579. * Set contrat
  1580. *
  1581. * @param integer $contrat
  1582. *
  1583. * @return Client
  1584. */
  1585. public function setContrat($contrat)
  1586. {
  1587. $this->contrat = $contrat;
  1588. return $this;
  1589. }
  1590. /**
  1591. * Get contrat
  1592. *
  1593. * @return integer
  1594. */
  1595. public function getContrat()
  1596. {
  1597. return $this->contrat;
  1598. }
  1599. /**
  1600. * Set distributeurboisson
  1601. *
  1602. * @param string $distributeurboisson
  1603. *
  1604. * @return Client
  1605. */
  1606. public function setDistributeurboisson($distributeurboisson)
  1607. {
  1608. $this->distributeurboisson = $distributeurboisson;
  1609. return $this;
  1610. }
  1611. /**
  1612. * Get distributeurboisson
  1613. *
  1614. * @return string
  1615. */
  1616. public function getDistributeurboisson()
  1617. {
  1618. return $this->distributeurboisson;
  1619. }
  1620. /**
  1621. * Set datedebutcontrat
  1622. *
  1623. * @param \DateTime $datedebutcontrat
  1624. *
  1625. * @return Client
  1626. */
  1627. public function setDatedebutcontrat($datedebutcontrat)
  1628. {
  1629. $this->datedebutcontrat = $datedebutcontrat;
  1630. return $this;
  1631. }
  1632. /**
  1633. * Get datedebutcontrat
  1634. *
  1635. * @return \DateTime
  1636. */
  1637. public function getDatedebutcontrat()
  1638. {
  1639. return $this->datedebutcontrat;
  1640. }
  1641. /**
  1642. * Set datefincontrat
  1643. *
  1644. * @param \DateTime $datefincontrat
  1645. *
  1646. * @return Client
  1647. */
  1648. public function setDatefincontrat($datefincontrat)
  1649. {
  1650. $this->datefincontrat = $datefincontrat;
  1651. return $this;
  1652. }
  1653. /**
  1654. * Get datefincontrat
  1655. *
  1656. * @return \DateTime
  1657. */
  1658. public function getDatefincontrat()
  1659. {
  1660. return $this->datefincontrat;
  1661. }
  1662. /**
  1663. * Set typecontrat
  1664. *
  1665. * @param integer $typecontrat
  1666. *
  1667. * @return Client
  1668. */
  1669. public function setTypecontrat($typecontrat)
  1670. {
  1671. $this->typecontrat = $typecontrat;
  1672. return $this;
  1673. }
  1674. /**
  1675. * Get typecontrat
  1676. *
  1677. * @return integer
  1678. */
  1679. public function getTypecontrat()
  1680. {
  1681. return $this->typecontrat;
  1682. }
  1683. /**
  1684. * Set montantcontrat
  1685. *
  1686. * @param integer $montantcontrat
  1687. *
  1688. * @return Client
  1689. */
  1690. public function setMontantcontrat($montantcontrat)
  1691. {
  1692. $this->montantcontrat = $montantcontrat;
  1693. return $this;
  1694. }
  1695. /**
  1696. * Get montantcontrat
  1697. *
  1698. * @return integer
  1699. */
  1700. public function getMontantcontrat()
  1701. {
  1702. return $this->montantcontrat;
  1703. }
  1704. /**
  1705. * Set siret
  1706. *
  1707. * @param string $siret
  1708. *
  1709. * @return Client
  1710. */
  1711. public function setSiret($siret)
  1712. {
  1713. $this->siret = $siret;
  1714. return $this;
  1715. }
  1716. /**
  1717. * Get siret
  1718. *
  1719. * @return string
  1720. */
  1721. public function getSiret()
  1722. {
  1723. return $this->siret;
  1724. }
  1725. /**
  1726. * Set cagnottemalys
  1727. *
  1728. * @param float $cagnottemalys
  1729. *
  1730. * @return Client
  1731. */
  1732. public function setCagnottemalys($cagnottemalys)
  1733. {
  1734. $this->cagnottemalys = $cagnottemalys;
  1735. return $this;
  1736. }
  1737. /**
  1738. * Get cagnottemalys
  1739. *
  1740. * @return float
  1741. */
  1742. public function getCagnottemalys()
  1743. {
  1744. return $this->cagnottemalys;
  1745. }
  1746. /**
  1747. * Set infolivre
  1748. *
  1749. * @param string $infolivre
  1750. *
  1751. * @return Client
  1752. */
  1753. public function setInfolivre($infolivre)
  1754. {
  1755. $this->infolivre = $infolivre;
  1756. return $this;
  1757. }
  1758. /**
  1759. * Get infolivre
  1760. *
  1761. * @return string
  1762. */
  1763. public function getInfolivre()
  1764. {
  1765. return $this->infolivre;
  1766. }
  1767. /**
  1768. * Add clientRelation
  1769. *
  1770. * @param Clientrelation $clientRelation
  1771. *
  1772. * @return Client
  1773. */
  1774. public function addClientRelation(Clientrelation $clientRelation)
  1775. {
  1776. $this->clientRelation[] = $clientRelation;
  1777. return $this;
  1778. }
  1779. /**
  1780. * Remove clientRelation
  1781. *
  1782. * @param Clientrelation $clientRelation
  1783. */
  1784. public function removeClientRelation(Clientrelation $clientRelation)
  1785. {
  1786. $this->clientRelation->removeElement($clientRelation);
  1787. }
  1788. public function isSameAsAdresse()
  1789. {
  1790. return $this->sameAsAdresse;
  1791. }
  1792. public function setSameAsAdresse(bool $sameAsAdresse): void
  1793. {
  1794. $this->sameAsAdresse = $sameAsAdresse;
  1795. }
  1796. /**
  1797. * @return mixed
  1798. */
  1799. public function getEmail3()
  1800. {
  1801. return $this->email3;
  1802. }
  1803. /**
  1804. * @return mixed
  1805. */
  1806. public function getContact2()
  1807. {
  1808. return $this->contact2;
  1809. }
  1810. /**
  1811. * @param mixed $contact2
  1812. */
  1813. public function setContact2($contact2): void
  1814. {
  1815. $this->contact2 = $contact2;
  1816. }
  1817. /**
  1818. * @return mixed
  1819. */
  1820. public function getFonction2()
  1821. {
  1822. return $this->fonction2;
  1823. }
  1824. /**
  1825. * @param mixed $fonction2
  1826. */
  1827. public function setFonction2($fonction2): void
  1828. {
  1829. $this->fonction2 = $fonction2;
  1830. }
  1831. /**
  1832. * @return mixed
  1833. */
  1834. public function getTel2()
  1835. {
  1836. return $this->tel2;
  1837. }
  1838. /**
  1839. * @param mixed $tel2
  1840. */
  1841. public function setTel2($tel2): void
  1842. {
  1843. $this->tel2 = $tel2;
  1844. }
  1845. /**
  1846. * @return mixed
  1847. */
  1848. public function getMobile2()
  1849. {
  1850. return $this->mobile2;
  1851. }
  1852. /**
  1853. * @param mixed $mobile2
  1854. */
  1855. public function setMobile2($mobile2): void
  1856. {
  1857. $this->mobile2 = $mobile2;
  1858. }
  1859. /**
  1860. * @return mixed
  1861. */
  1862. public function getEmail2()
  1863. {
  1864. return $this->email2;
  1865. }
  1866. /**
  1867. * @param mixed $email2
  1868. */
  1869. public function setEmail2($email2): void
  1870. {
  1871. $this->email2 = $email2;
  1872. }
  1873. /**
  1874. * @return mixed
  1875. */
  1876. public function getContact3()
  1877. {
  1878. return $this->contact3;
  1879. }
  1880. /**
  1881. * @param mixed $contact3
  1882. */
  1883. public function setContact3($contact3): void
  1884. {
  1885. $this->contact3 = $contact3;
  1886. }
  1887. /**
  1888. * @return mixed
  1889. */
  1890. public function getFonction3()
  1891. {
  1892. return $this->fonction3;
  1893. }
  1894. /**
  1895. * @param mixed $fonction3
  1896. */
  1897. public function setFonction3($fonction3): void
  1898. {
  1899. $this->fonction3 = $fonction3;
  1900. }
  1901. /**
  1902. * @return mixed
  1903. */
  1904. public function getTel3()
  1905. {
  1906. return $this->tel3;
  1907. }
  1908. /**
  1909. * @param mixed $tel3
  1910. */
  1911. public function setTel3($tel3): void
  1912. {
  1913. $this->tel3 = $tel3;
  1914. }
  1915. /**
  1916. * @return mixed
  1917. */
  1918. public function getMobile3()
  1919. {
  1920. return $this->mobile3;
  1921. }
  1922. /**
  1923. * @param mixed $mobile3
  1924. */
  1925. public function setMobile3($mobile3): void
  1926. {
  1927. $this->mobile3 = $mobile3;
  1928. }
  1929. /**
  1930. * @param mixed $email3
  1931. */
  1932. public function setEmail3($email3): void
  1933. {
  1934. $this->email3 = $email3;
  1935. }
  1936. public function getPlustard()
  1937. {
  1938. return $this->plustard;
  1939. }
  1940. public function setPlustard(string $plustard): void
  1941. {
  1942. $this->plustard = $plustard;
  1943. }
  1944. public function getPlustot()
  1945. {
  1946. return $this->plustot;
  1947. }
  1948. public function setPlustot(string $plustot): void
  1949. {
  1950. $this->plustot = $plustot;
  1951. }
  1952. public function getConditionReglement()
  1953. {
  1954. return $this->conditionReglement;
  1955. }
  1956. public function setConditionReglement(string $conditionReglement): void
  1957. {
  1958. $this->conditionReglement = $conditionReglement;
  1959. }
  1960. }