src/Entity/RequeteDeFinancement.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Utils\SharedMethods;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\RequeteDeFinancementRepository")
  7.  */
  8. class RequeteDeFinancement
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $numero;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $societe;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $pays;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $activite;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $courriel;
  36.     /**
  37.      * @ORM\Column(type="datetime")
  38.      */
  39.     private $dateRemiseDossier;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $contact;
  44.     /**
  45.      * @ORM\Column(type="string", length=255)
  46.      */
  47.     private $secteur;
  48.     /**
  49.      * @ORM\Column(type="string", length=255)
  50.      */
  51.     private $telephone;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $adresse;
  56.     /**
  57.      * @ORM\Column(type="datetime", nullable=true)
  58.      */
  59.     private $dateEstimeDemarrageProjet;
  60.     /**
  61.      * @ORM\Column(type="string", length=255)
  62.      */
  63.     private $montantDemande;
  64.     /**
  65.      * @ORM\Column(type="string", length=255)
  66.      */
  67.     private $partVariable;
  68.     /**
  69.      * @ORM\Column(type="string", length=255)
  70.      */
  71.     private $natureInvestissement;
  72.     /**
  73.      * @ORM\Column(type="text", nullable=true)
  74.      */
  75.     private $note;
  76.     /**
  77.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="requeteDeFinancements")
  78.      */
  79.     private $user;
  80.     /**
  81.      * @ORM\ManyToOne(targetEntity="App\Entity\Niveau", inversedBy="requeteDeFinancements")
  82.      */
  83.     private $niveau;
  84.     /**
  85.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="requeteDeFinancements")
  86.      */
  87.     private $status;
  88.     /**
  89.      * @ORM\Column(type="datetime")
  90.      */
  91.     private $createdAt;
  92.     public function __construct(){
  93.         $this->createdAt = new \DateTime('now');
  94. //        $this->statu = "En cours";
  95.         $this->numero SharedMethods::generateNumber($this->numero,"RDF");
  96.     }
  97.     public function getUser(): ?User
  98.     {
  99.         return $this->user;
  100.     }
  101.     public function setUser(?User $user): self
  102.     {
  103.         $this->user $user;
  104.         return $this;
  105.     }
  106.     public function getId(): ?int
  107.     {
  108.         return $this->id;
  109.     }
  110.     public function getNumero(): ?string
  111.     {
  112.         return $this->numero;
  113.     }
  114.     public function setNumero(string $numero): self
  115.     {
  116.         $this->numero $numero;
  117.         return $this;
  118.     }
  119.     public function getSociete(): ?string
  120.     {
  121.         return $this->societe;
  122.     }
  123.     public function setSociete(string $societe): self
  124.     {
  125.         $this->societe $societe;
  126.         return $this;
  127.     }
  128.     public function getPays(): ?string
  129.     {
  130.         return $this->pays;
  131.     }
  132.     public function setPays(string $pays): self
  133.     {
  134.         $this->pays $pays;
  135.         return $this;
  136.     }
  137.     public function getActivite(): ?string
  138.     {
  139.         return $this->activite;
  140.     }
  141.     public function setActivite(?string $activite): self
  142.     {
  143.         $this->activite $activite;
  144.         return $this;
  145.     }
  146.     public function getCourriel(): ?string
  147.     {
  148.         return $this->courriel;
  149.     }
  150.     public function setCourriel(string $courriel): self
  151.     {
  152.         $this->courriel $courriel;
  153.         return $this;
  154.     }
  155.     public function getDateRemiseDossier(): ?\DateTimeInterface
  156.     {
  157.         return $this->dateRemiseDossier;
  158.     }
  159.     public function setDateRemiseDossier(\DateTimeInterface $dateRemiseDossier): self
  160.     {
  161.         $this->dateRemiseDossier $dateRemiseDossier;
  162.         return $this;
  163.     }
  164.     public function getContact(): ?string
  165.     {
  166.         return $this->contact;
  167.     }
  168.     public function setContact(?string $contact): self
  169.     {
  170.         $this->contact $contact;
  171.         return $this;
  172.     }
  173.     public function getSecteur(): ?string
  174.     {
  175.         return $this->secteur;
  176.     }
  177.     public function setSecteur(string $secteur): self
  178.     {
  179.         $this->secteur $secteur;
  180.         return $this;
  181.     }
  182.     public function getTelephone(): ?string
  183.     {
  184.         return $this->telephone;
  185.     }
  186.     public function setTelephone(string $telephone): self
  187.     {
  188.         $this->telephone $telephone;
  189.         return $this;
  190.     }
  191.     public function getAdresse(): ?string
  192.     {
  193.         return $this->adresse;
  194.     }
  195.     public function setAdresse(?string $adresse): self
  196.     {
  197.         $this->adresse $adresse;
  198.         return $this;
  199.     }
  200.     public function getDateEstimeDemarrageProjet(): ?\DateTimeInterface
  201.     {
  202.         return $this->dateEstimeDemarrageProjet;
  203.     }
  204.     public function setDateEstimeDemarrageProjet(?\DateTimeInterface $dateEstimeDemarrageProjet): self
  205.     {
  206.         $this->dateEstimeDemarrageProjet $dateEstimeDemarrageProjet;
  207.         return $this;
  208.     }
  209.     public function getMontantDemande(): ?string
  210.     {
  211.         return $this->montantDemande;
  212.     }
  213.     public function setMontantDemande(string $montantDemande): self
  214.     {
  215.         $this->montantDemande $montantDemande;
  216.         return $this;
  217.     }
  218.     public function getPartVariable(): ?string
  219.     {
  220.         return $this->partVariable;
  221.     }
  222.     public function setPartVariable(string $partVariable): self
  223.     {
  224.         $this->partVariable $partVariable;
  225.         return $this;
  226.     }
  227.     public function getNatureInvestissement(): ?string
  228.     {
  229.         return $this->natureInvestissement;
  230.     }
  231.     public function setNatureInvestissement(string $natureInvestissement): self
  232.     {
  233.         $this->natureInvestissement $natureInvestissement;
  234.         return $this;
  235.     }
  236.     public function getNote(): ?string
  237.     {
  238.         return $this->note;
  239.     }
  240.     public function setNote(?string $note): self
  241.     {
  242.         $this->note $note;
  243.         return $this;
  244.     }
  245.     public function getNiveau(): ?Niveau
  246.     {
  247.         return $this->niveau;
  248.     }
  249.     public function setNiveau(?Niveau $niveau): self
  250.     {
  251.         $this->niveau $niveau;
  252.         return $this;
  253.     }
  254.     public function getStatus(): ? Status
  255.     {
  256.         return $this->status;
  257.     }
  258.     public function setStatus(?Status $status): self
  259.     {
  260.         $this->status $status;
  261.         return $this;
  262.     }
  263.     public function getCreatedAt(): ?\DateTimeInterface
  264.     {
  265.         return $this->createdAt;
  266.     }
  267.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  268.     {
  269.         $this->createdAt $createdAt;
  270.         return $this;
  271.     }
  272. }