src/Entity/Prospect.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ProspectRepository")
  6.  */
  7. class Prospect
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255, nullable=true)
  17.      */
  18.     private $numero;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $raisonSocial;
  23.     /**
  24.      * @ORM\Column(type="integer", nullable=true)
  25.      */
  26.     private $ca;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $contact;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $fonction;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $tel;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $portable;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      */
  46.     private $courriel;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      */
  50.     private $portofolio;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private $demande;
  55.     /**
  56.      * @ORM\Column(type="string", length=255, nullable=true)
  57.      */
  58.     private $fax;
  59.     /**
  60.      * @ORM\Column(type="text", nullable=true)
  61.      */
  62.     private $suiteAdonner;
  63.     
  64.     /**
  65.      * @ORM\Column(type="text", nullable=true)
  66.      */
  67.     private $observation;
  68.     /**
  69.      * @ORM\Column(type="text", nullable=true)
  70.      */
  71.     private $suiteAdonner2;
  72.     /**
  73.      * @ORM\Column(type="text", nullable=true)
  74.      */
  75.     private $observation2;
  76.     
  77.     /**
  78.      * @ORM\Column(type="text", nullable=true)
  79.      */
  80.     private $source;
  81.     
  82.     /**
  83.      * @ORM\Column(type="text", nullable=true)
  84.      */
  85.     private $suiteAdonner3;
  86.     
  87.     /**
  88.      * @ORM\Column(type="text", nullable=true)
  89.      */
  90.     private $observation3;
  91.     /**
  92.      * @ORM\Column(type="datetime")
  93.      */
  94.     private $createdAt;
  95.     /**
  96.      * @ORM\Column(type="datetime", nullable=true)
  97.      */
  98.     private $dateEnregistrement;
  99.     /**
  100.      * @ORM\ManyToOne(targetEntity="App\Entity\Niveau", inversedBy="prospects")
  101.      */
  102.     private $niveau;
  103.     /**
  104.      * @ORM\Column(type="string", length=255, nullable=true)
  105.      */
  106.     private $activite;
  107.     /**
  108.      * @ORM\Column(type="string", length=255, nullable=true)
  109.      */
  110.     private $desk;
  111.     /**
  112.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="prospects")
  113.      */
  114.     private $suiviPar;
  115.     /**
  116.      * @ORM\ManyToOne(targetEntity="App\Entity\Products", inversedBy="prospects")
  117.      */
  118.     private $produit;
  119.     /**
  120.      * @ORM\Column(type="text", nullable=true)
  121.      */
  122.     private $pays;
  123.      /**
  124.      * @ORM\Column(type="text", nullable=true)
  125.      */
  126.     private $ville;
  127.     /**
  128.      * @ORM\Column(type="text", nullable=true)
  129.      */
  130.     private $zone;
  131.     /**
  132.      * @ORM\Column(type="text", nullable=true)
  133.      */
  134.     private $site;
  135.     /**
  136.      * @ORM\Column(type="text", nullable=true)
  137.      */
  138.     private $form;
  139.     /**
  140.      * @ORM\Column(type="text", nullable=true)
  141.      */
  142.     private $effectifs;
  143.     /**
  144.      * @ORM\Column(type="text", nullable=true)
  145.      */
  146.     private $taille;
  147.     /**
  148.      * @ORM\Column(type="text", nullable=true)
  149.      */
  150.     private $dateEntreprise;
  151.     /**
  152.      * @ORM\Column(type="text", nullable=true)
  153.      */
  154.     private $pronostic;
  155.     /**
  156.      * @ORM\Column(type="text", nullable=true)
  157.      */
  158.     private $localisation;
  159.     /**
  160.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="prospects")
  161.      */
  162.     private $statut;
  163.     /**
  164.      * @ORM\Column(type="datetime", nullable=true)
  165.      */
  166.     private $relance1;
  167.     /**
  168.      * @ORM\Column(type="datetime", nullable=true)
  169.      */
  170.     private $relance2;
  171.     /**
  172.      * @ORM\Column(type="datetime", nullable=true)
  173.      */
  174.     private $relance3;
  175.     public function __construct()
  176.     {
  177.         $this->createdAt = new \DateTime('now');
  178.         if (!isset($this->numero)){
  179.             $this->numero 'PRO'.random_int(50,100).date('s');
  180.         }else{
  181.             $this->numero 'PRO'.random_int(50,100).date('s');
  182.         }
  183.     }
  184.     public function getId(): ?int
  185.     {
  186.         return $this->id;
  187.     }
  188.     public function getNumero(): ?string
  189.     {
  190.         return $this->numero;
  191.     }
  192.     public function setNumero(string $numero): self
  193.     {
  194.         $this->numero $numero;
  195.         return $this;
  196.     }
  197.     public function getDesk(): ?string
  198.     {
  199.         return $this->desk;
  200.     }
  201.     public function setDesk(?string $desk): self
  202.     {
  203.         $this->desk $desk;
  204.         return $this;
  205.     }
  206.     public function getRaisonSocial(): ?string
  207.     {
  208.         return $this->raisonSocial;
  209.     }
  210.     public function setRaisonSocial(string $raisonSocial): self
  211.     {
  212.         $this->raisonSocial $raisonSocial;
  213.         return $this;
  214.     }
  215.     public function getCa(): ?int
  216.     {
  217.         return $this->ca;
  218.     }
  219.     public function setCa(?int $ca): self
  220.     {
  221.         $this->ca $ca;
  222.         return $this;
  223.     }
  224.     public function getContact(): ?string
  225.     {
  226.         return $this->contact;
  227.     }
  228.     public function setContact(string $contact): self
  229.     {
  230.         $this->contact $contact;
  231.         return $this;
  232.     }
  233.     public function getFonction(): ?string
  234.     {
  235.         return $this->fonction;
  236.     }
  237.     public function setFonction(string $fonction): self
  238.     {
  239.         $this->fonction $fonction;
  240.         return $this;
  241.     }
  242.     public function getTel(): ?string
  243.     {
  244.         return $this->tel;
  245.     }
  246.     public function setTel(string $tel): self
  247.     {
  248.         $this->tel $tel;
  249.         return $this;
  250.     }
  251.     public function getPortable(): ?string
  252.     {
  253.         return $this->portable;
  254.     }
  255.     public function setPortable(string $portable): self
  256.     {
  257.         $this->portable $portable;
  258.         return $this;
  259.     }
  260.     public function getCourriel(): ?string
  261.     {
  262.         return $this->courriel;
  263.     }
  264.     public function setCourriel(string $courriel): self
  265.     {
  266.         $this->courriel $courriel;
  267.         return $this;
  268.     }
  269.     public function getPortofolio(): ?string
  270.     {
  271.         return $this->portofolio;
  272.     }
  273.     public function setPortofolio(string $portofolio): self
  274.     {
  275.         $this->portofolio $portofolio;
  276.         return $this;
  277.     }
  278.     public function getDemande(): ?string
  279.     {
  280.         return $this->demande;
  281.     }
  282.     public function setDemande(string $demande): self
  283.     {
  284.         $this->demande $demande;
  285.         return $this;
  286.     }
  287.     public function getFax(): ?string
  288.     {
  289.         return $this->fax;
  290.     }
  291.     public function setFax(string $fax): self
  292.     {
  293.         $this->fax $fax;
  294.         return $this;
  295.     }
  296.     
  297.     public function getSuiteAdonner(): ?string
  298.     {
  299.         return $this->suiteAdonner;
  300.     }
  301.     public function setSuiteAdonner(string $suiteAdonner): self
  302.     {
  303.         $this->suiteAdonner $suiteAdonner;
  304.         return $this;
  305.     }
  306.     public function getObservation(): ?string
  307.     {
  308.         return $this->observation;
  309.     }
  310.     public function setObservation(string $observation): self
  311.     {
  312.         $this->observation $observation;
  313.         return $this;
  314.     }
  315.     public function getSuiteAdonner2(): ?string
  316.     {
  317.         return $this->suiteAdonner2;
  318.     }
  319.     public function setSuiteAdonner2(string $suiteAdonner2): self
  320.     {
  321.         $this->suiteAdonner2 $suiteAdonner2;
  322.         return $this;
  323.     }
  324.     public function getSource(): ?string
  325.     {
  326.         return $this->source;
  327.     }
  328.     public function setSource(string $source): self
  329.     {
  330.         $this->source $source;
  331.         return $this;
  332.     }
  333.     public function getSuiteAdonner3(): ?string
  334.     {
  335.         return $this->suiteAdonner3;
  336.     }
  337.     public function setSuiteAdonner3(string $suiteAdonner3): self
  338.     {
  339.         $this->suiteAdonner3 $suiteAdonner3;
  340.         return $this;
  341.     }
  342.     public function getObservation2(): ?string
  343.     {
  344.         return $this->observation2;
  345.     }
  346.     public function setObservation2(string $observation2): self
  347.     {
  348.         $this->observation2 $observation2;
  349.         return $this;
  350.     }
  351.     public function getObservation3(): ?string
  352.     {
  353.         return $this->observation3;
  354.     }
  355.     public function setObservation3(string $observation3): self
  356.     {
  357.         $this->observation3 $observation3;
  358.         return $this;
  359.     }
  360.     public function getCreatedAt(): ?\DateTimeInterface
  361.     {
  362.         return $this->createdAt;
  363.     }
  364.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  365.     {
  366.         $this->createdAt $createdAt;
  367.         return $this;
  368.     }
  369.     public function getDateEnregistrement(): ?\DateTimeInterface
  370.     {
  371.         return $this->dateEnregistrement;
  372.     }
  373.     public function setDateEnregistrement(?\DateTimeInterface $dateEnregistrement): self
  374.     {
  375.         $this->dateEnregistrement $dateEnregistrement;
  376.         return $this;
  377.     }
  378.     public function getNiveau(): ?Niveau
  379.     {
  380.         return $this->niveau;
  381.     }
  382.     public function setNiveau(?Niveau $niveau): self
  383.     {
  384.         $this->niveau $niveau;
  385.         return $this;
  386.     }
  387.     public function getActivite(): ?string
  388.     {
  389.         return $this->activite;
  390.     }
  391.     public function setActivité(?string $activite): self
  392.     {
  393.         $this->activite $activite;
  394.         return $this;
  395.     }
  396.     public function getSuiviPar(): ?User
  397.     {
  398.         return $this->suiviPar;
  399.     }
  400.     public function setSuiviPar(?User $suiviPar): self
  401.     {
  402.         $this->suiviPar $suiviPar;
  403.         return $this;
  404.     }
  405.     public function getProduit(): ?Products
  406.     {
  407.         return $this->produit;
  408.     }
  409.     public function setProduit(?Products $produit): self
  410.     {
  411.         $this->produit $produit;
  412.         return $this;
  413.     }
  414.     public function getPays(): ?string
  415.     {
  416.         return $this->pays;
  417.     }
  418.     public function setPays(?string $pays): self
  419.     {
  420.         $this->pays $pays;
  421.         return $this;
  422.     }
  423.     public function getVille(): ?string
  424.     {
  425.         return $this->ville;
  426.     }
  427.     public function setVille(?string $ville): self
  428.     {
  429.         $this->ville $ville;
  430.         return $this;
  431.     }
  432.     public function getZone(): ?string
  433.     {
  434.         return $this->zone;
  435.     }
  436.     public function setZone(?string $zone): self
  437.     {
  438.         $this->zone $zone;
  439.         return $this;
  440.     }
  441.     public function getSite(): ?string
  442.     {
  443.         return $this->site;
  444.     }
  445.     public function setSite(?string $site): self
  446.     {
  447.         $this->site $site;
  448.         return $this;
  449.     }
  450.     public function getForm(): ?string
  451.     {
  452.         return $this->form;
  453.     }
  454.     public function setForm(?string $form): self
  455.     {
  456.         $this->form $form;
  457.         return $this;
  458.     }
  459.     public function getEffectifs(): ?string
  460.     {
  461.         return $this->effectifs;
  462.     }
  463.     public function setEffectifs(?string $effectifs): self
  464.     {
  465.         $this->effectifs $effectifs;
  466.         return $this;
  467.     }
  468.     public function getDateEntreprise(): ?string
  469.     {
  470.         return $this->dateEntreprise;
  471.     }
  472.     public function setDateEntreprise(?string $dateEntreprise): self
  473.     {
  474.         $this->dateEntreprise $dateEntreprise;
  475.         return $this;
  476.     }
  477.     public function getPronostic(): ?string
  478.     {
  479.         return $this->pronostic;
  480.     }
  481.     public function setPronostic(?string $pronostic): self
  482.     {
  483.         $this->pronostic $pronostic;
  484.         return $this;
  485.     }
  486.     public function getLocalisation(): ?string
  487.     {
  488.         return $this->localisation;
  489.     }
  490.     public function setLocalisation(?string $localisation): self
  491.     {
  492.         $this->localisation $localisation;
  493.         return $this;
  494.     }
  495.     public function getTaille(): ?string
  496.     {
  497.         return $this->taille;
  498.     }
  499.     public function setTaille(?string $taille): self
  500.     {
  501.         $this->taille $taille;
  502.         return $this;
  503.     }
  504.     public function getStatut(): ?Status
  505.     {
  506.         return $this->statut;
  507.     }
  508.     public function setStatut(?Status $statut): self
  509.     {
  510.         $this->statut $statut;
  511.         return $this;
  512.     }
  513.     public function getRelance1(): ?\DateTimeInterface
  514.     {
  515.         return $this->relance1;
  516.     }
  517.     public function setRelance1(?\DateTimeInterface $relance1): self
  518.     {
  519.         $this->relance1 $relance1;
  520.         return $this;
  521.     }
  522.     public function getRelance2(): ?\DateTimeInterface
  523.     {
  524.         return $this->relance2;
  525.     }
  526.     public function setRelance2(?\DateTimeInterface $relance2): self
  527.     {
  528.         $this->relance2 $relance2;
  529.         return $this;
  530.     }
  531.     public function getRelance3(): ?\DateTimeInterface
  532.     {
  533.         return $this->relance3;
  534.     }
  535.     public function setRelance3(?\DateTimeInterface $relance3): self
  536.     {
  537.         $this->relance3 $relance3;
  538.         return $this;
  539.     }
  540. }