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 $fax;
  51.     /**
  52.      * @ORM\Column(type="text", nullable=true)
  53.      */
  54.     private $suiteAdonner;
  55.     
  56.     /**
  57.      * @ORM\Column(type="text", nullable=true)
  58.      */
  59.     private $observation;
  60.     /**
  61.      * @ORM\Column(type="text", nullable=true)
  62.      */
  63.     private $suiteAdonner2;
  64.     
  65.     /**
  66.      * @ORM\Column(type="text", nullable=true)
  67.      */
  68.     private $observation2;
  69.     
  70.     /**
  71.      * @ORM\Column(type="text", nullable=true)
  72.      */
  73.     private $suiteAdonner3;
  74.     
  75.     /**
  76.      * @ORM\Column(type="text", nullable=true)
  77.      */
  78.     private $observation3;
  79.     /**
  80.      * @ORM\Column(type="datetime")
  81.      */
  82.     private $createdAt;
  83.     /**
  84.      * @ORM\Column(type="datetime", nullable=true)
  85.      */
  86.     private $dateEnregistrement;
  87.     /**
  88.      * @ORM\ManyToOne(targetEntity="App\Entity\Niveau", inversedBy="prospects")
  89.      */
  90.     private $niveau;
  91.     /**
  92.      * @ORM\Column(type="string", length=255, nullable=true)
  93.      */
  94.     private $secteur;
  95.     /**
  96.      * @ORM\Column(type="string", length=255, nullable=true)
  97.      */
  98.     private $desk;
  99.     /**
  100.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="prospects")
  101.      */
  102.     private $suiviPar;
  103.     /**
  104.      * @ORM\ManyToOne(targetEntity="App\Entity\Products", inversedBy="prospects")
  105.      */
  106.     private $produit;
  107.     /**
  108.      * @ORM\Column(type="text", nullable=true)
  109.      */
  110.     private $demande;
  111.     /**
  112.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="prospects")
  113.      */
  114.     private $statut;
  115.     /**
  116.      * @ORM\Column(type="datetime", nullable=true)
  117.      */
  118.     private $relance1;
  119.     /**
  120.      * @ORM\Column(type="datetime", nullable=true)
  121.      */
  122.     private $relance2;
  123.     /**
  124.      * @ORM\Column(type="datetime", nullable=true)
  125.      */
  126.     private $relance3;
  127.     public function __construct()
  128.     {
  129.         $this->createdAt = new \DateTime('now');
  130.         if (!isset($this->numero)){
  131.             $this->numero 'PRO'.random_int(50,100).date('s');
  132.         }else{
  133.             $this->numero 'PRO'.random_int(50,100).date('s');
  134.         }
  135.     }
  136.     public function getId(): ?int
  137.     {
  138.         return $this->id;
  139.     }
  140.     public function getNumero(): ?string
  141.     {
  142.         return $this->numero;
  143.     }
  144.     public function setNumero(string $numero): self
  145.     {
  146.         $this->numero $numero;
  147.         return $this;
  148.     }
  149.     public function getDesk(): ?string
  150.     {
  151.         return $this->desk;
  152.     }
  153.     public function setDesk(?string $desk): self
  154.     {
  155.         $this->desk $desk;
  156.         return $this;
  157.     }
  158.     public function getRaisonSocial(): ?string
  159.     {
  160.         return $this->raisonSocial;
  161.     }
  162.     public function setRaisonSocial(string $raisonSocial): self
  163.     {
  164.         $this->raisonSocial $raisonSocial;
  165.         return $this;
  166.     }
  167.     public function getCa(): ?int
  168.     {
  169.         return $this->ca;
  170.     }
  171.     public function setCa(?int $ca): self
  172.     {
  173.         $this->ca $ca;
  174.         return $this;
  175.     }
  176.     public function getContact(): ?string
  177.     {
  178.         return $this->contact;
  179.     }
  180.     public function setContact(string $contact): self
  181.     {
  182.         $this->contact $contact;
  183.         return $this;
  184.     }
  185.     public function getFonction(): ?string
  186.     {
  187.         return $this->fonction;
  188.     }
  189.     public function setFonction(string $fonction): self
  190.     {
  191.         $this->fonction $fonction;
  192.         return $this;
  193.     }
  194.     public function getTel(): ?string
  195.     {
  196.         return $this->tel;
  197.     }
  198.     public function setTel(string $tel): self
  199.     {
  200.         $this->tel $tel;
  201.         return $this;
  202.     }
  203.     public function getPortable(): ?string
  204.     {
  205.         return $this->portable;
  206.     }
  207.     public function setPortable(string $portable): self
  208.     {
  209.         $this->portable $portable;
  210.         return $this;
  211.     }
  212.     public function getCourriel(): ?string
  213.     {
  214.         return $this->courriel;
  215.     }
  216.     public function setCourriel(string $courriel): self
  217.     {
  218.         $this->courriel $courriel;
  219.         return $this;
  220.     }
  221.     public function getFax(): ?string
  222.     {
  223.         return $this->fax;
  224.     }
  225.     public function setFax(string $fax): self
  226.     {
  227.         $this->fax $fax;
  228.         return $this;
  229.     }
  230.     
  231.     public function getSuiteAdonner(): ?string
  232.     {
  233.         return $this->suiteAdonner;
  234.     }
  235.     public function setSuiteAdonner(string $suiteAdonner): self
  236.     {
  237.         $this->suiteAdonner $suiteAdonner;
  238.         return $this;
  239.     }
  240.     public function getObservation(): ?string
  241.     {
  242.         return $this->observation;
  243.     }
  244.     public function setObservation(string $observation): self
  245.     {
  246.         $this->observation $observation;
  247.         return $this;
  248.     }
  249.     public function getSuiteAdonner2(): ?string
  250.     {
  251.         return $this->suiteAdonner2;
  252.     }
  253.     public function setSuiteAdonner2(string $suiteAdonner2): self
  254.     {
  255.         $this->suiteAdonner2 $suiteAdonner2;
  256.         return $this;
  257.     }
  258.     public function getObservation2(): ?string
  259.     {
  260.         return $this->observation2;
  261.     }
  262.     public function setObservation2(string $observation2): self
  263.     {
  264.         $this->observation2 $observation2;
  265.         return $this;
  266.     }
  267.     public function getSuiteAdonner3(): ?string
  268.     {
  269.         return $this->suiteAdonner3;
  270.     }
  271.     public function setSuiteAdonner3(string $suiteAdonner3): self
  272.     {
  273.         $this->suiteAdonner3 $suiteAdonner3;
  274.         return $this;
  275.     }
  276.     public function getObservation3(): ?string
  277.     {
  278.         return $this->observation3;
  279.     }
  280.     public function setObservation3(string $observation3): self
  281.     {
  282.         $this->observation3 $observation3;
  283.         return $this;
  284.     }
  285.     public function getCreatedAt(): ?\DateTimeInterface
  286.     {
  287.         return $this->createdAt;
  288.     }
  289.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  290.     {
  291.         $this->createdAt $createdAt;
  292.         return $this;
  293.     }
  294.     public function getDateEnregistrement(): ?\DateTimeInterface
  295.     {
  296.         return $this->dateEnregistrement;
  297.     }
  298.     public function setDateEnregistrement(?\DateTimeInterface $dateEnregistrement): self
  299.     {
  300.         $this->dateEnregistrement $dateEnregistrement;
  301.         return $this;
  302.     }
  303.     public function getNiveau(): ?Niveau
  304.     {
  305.         return $this->niveau;
  306.     }
  307.     public function setNiveau(?Niveau $niveau): self
  308.     {
  309.         $this->niveau $niveau;
  310.         return $this;
  311.     }
  312.     public function getSecteur(): ?string
  313.     {
  314.         return $this->secteur;
  315.     }
  316.     public function setSecteur(?string $secteur): self
  317.     {
  318.         $this->secteur $secteur;
  319.         return $this;
  320.     }
  321.     public function getSuiviPar(): ?User
  322.     {
  323.         return $this->suiviPar;
  324.     }
  325.     public function setSuiviPar(?User $suiviPar): self
  326.     {
  327.         $this->suiviPar $suiviPar;
  328.         return $this;
  329.     }
  330.     public function getProduit(): ?Products
  331.     {
  332.         return $this->produit;
  333.     }
  334.     public function setProduit(?Products $produit): self
  335.     {
  336.         $this->produit $produit;
  337.         return $this;
  338.     }
  339.     public function getDemande(): ?string
  340.     {
  341.         return $this->demande;
  342.     }
  343.     public function setDemande(?string $demande): self
  344.     {
  345.         $this->demande $demande;
  346.         return $this;
  347.     }
  348.     public function getStatut(): ?Status
  349.     {
  350.         return $this->statut;
  351.     }
  352.     public function setStatut(?Status $statut): self
  353.     {
  354.         $this->statut $statut;
  355.         return $this;
  356.     }
  357.     public function getRelance1(): ?\DateTimeInterface
  358.     {
  359.         return $this->relance1;
  360.     }
  361.     public function setRelance1(?\DateTimeInterface $relance1): self
  362.     {
  363.         $this->relance1 $relance1;
  364.         return $this;
  365.     }
  366.     public function getRelance2(): ?\DateTimeInterface
  367.     {
  368.         return $this->relance2;
  369.     }
  370.     public function setRelance2(?\DateTimeInterface $relance2): self
  371.     {
  372.         $this->relance2 $relance2;
  373.         return $this;
  374.     }
  375.     public function getRelance3(): ?\DateTimeInterface
  376.     {
  377.         return $this->relance3;
  378.     }
  379.     public function setRelance3(?\DateTimeInterface $relance3): self
  380.     {
  381.         $this->relance3 $relance3;
  382.         return $this;
  383.     }
  384. }