src/Entity/DemandeDevisEntete.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeDevisEnteteRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=DemandeDevisEnteteRepository::class)
  9.  */
  10. class DemandeDevisEntete
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $numeroDevis;
  22.     /**
  23.      * @ORM\Column(type="date", nullable=true)
  24.      */
  25.     private $dateDevis;
  26.     /**
  27.      * @ORM\Column(type="date", nullable=true)
  28.      */
  29.     private $dateFinValidite;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $client;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $typeClient;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Organisme::class, inversedBy="demandeDevisEntetes")
  40.      */
  41.     private $organisme;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=Entreprise::class, inversedBy="demandeDevisEntetes")
  44.      */
  45.     private $entreprise;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="demandeDevisEntetes")
  48.      */
  49.     private $tier;
  50.     /**
  51.      * @ORM\Column(type="text", nullable=true)
  52.      */
  53.     private $informationsComplementaires;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $statutDevis;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $token;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=Site::class, inversedBy="demandeDevisEntetes")
  64.      */
  65.     private $site;
  66.     /**
  67.      * @ORM\Column(type="float", nullable=true)
  68.      */
  69.     private $totalHt;
  70.     /**
  71.      * @ORM\Column(type="float", nullable=true)
  72.      */
  73.     private $totalRemise;
  74.     /**
  75.      * @ORM\Column(type="float", nullable=true)
  76.      */
  77.     private $totalApresRemise;
  78.     /**
  79.      * @ORM\Column(type="text", nullable=true)
  80.      */
  81.     private $clientSignature;
  82.     /**
  83.      * @ORM\Column(type="datetime_immutable", nullable=true)
  84.      */
  85.     private $createdAt;
  86.     /**
  87.      * @ORM\OneToMany(targetEntity=DemandeDevisLigne::class, mappedBy="demandeDevisEntete", cascade={"persist"})
  88.      */
  89.     private $demandeDevisLignes;
  90.     /**
  91.      * @ORM\Column(type="string", length=255, nullable=true)
  92.      */
  93.     private $email;
  94.     /**
  95.      * @ORM\Column(type="string", length=1, nullable=true)
  96.      */
  97.     private $accepted;
  98.     public function __construct()
  99.     {
  100.         $this->demandeDevisLignes = new ArrayCollection();
  101.     }
  102.     public function getId(): ?int
  103.     {
  104.         return $this->id;
  105.     }
  106.     public function getNumeroDevis(): ?string
  107.     {
  108.         return $this->numeroDevis;
  109.     }
  110.     public function setNumeroDevis(?string $numeroDevis): self
  111.     {
  112.         $this->numeroDevis $numeroDevis;
  113.         return $this;
  114.     }
  115.     public function getDateDevis(): ?\DateTimeInterface
  116.     {
  117.         return $this->dateDevis;
  118.     }
  119.     public function setDateDevis(?\DateTimeInterface $dateDevis): self
  120.     {
  121.         $this->dateDevis $dateDevis;
  122.         return $this;
  123.     }
  124.     public function getDateFinValidite(): ?\DateTimeInterface
  125.     {
  126.         return $this->dateFinValidite;
  127.     }
  128.     public function setDateFinValidite(?\DateTimeInterface $dateFinValidite): self
  129.     {
  130.         $this->dateFinValidite $dateFinValidite;
  131.         return $this;
  132.     }
  133.     public function getClient(): ?string
  134.     {
  135.         return $this->client;
  136.     }
  137.     public function setClient(?string $client): self
  138.     {
  139.         $this->client $client;
  140.         return $this;
  141.     }
  142.     public function getTypeClient(): ?string
  143.     {
  144.         return $this->typeClient;
  145.     }
  146.     public function setTypeClient(?string $typeClient): self
  147.     {
  148.         $this->typeClient $typeClient;
  149.         return $this;
  150.     }
  151.     public function getOrganisme(): ?Organisme
  152.     {
  153.         return $this->organisme;
  154.     }
  155.     public function setOrganisme(?Organisme $organisme): self
  156.     {
  157.         $this->organisme $organisme;
  158.         return $this;
  159.     }
  160.     public function getEntreprise(): ?Entreprise
  161.     {
  162.         return $this->entreprise;
  163.     }
  164.     public function setEntreprise(?Entreprise $entreprise): self
  165.     {
  166.         $this->entreprise $entreprise;
  167.         return $this;
  168.     }
  169.     public function getTier(): ?Tier
  170.     {
  171.         return $this->tier;
  172.     }
  173.     public function setTier(?Tier $tier): self
  174.     {
  175.         $this->tier $tier;
  176.         return $this;
  177.     }
  178.     public function getInformationsComplementaires(): ?string
  179.     {
  180.         return $this->informationsComplementaires;
  181.     }
  182.     public function setInformationsComplementaires(?string $informationsComplementaires): self
  183.     {
  184.         $this->informationsComplementaires $informationsComplementaires;
  185.         return $this;
  186.     }
  187.     public function getStatutDevis(): ?string
  188.     {
  189.         return $this->statutDevis;
  190.     }
  191.     public function setStatutDevis(?string $statutDevis): self
  192.     {
  193.         $this->statutDevis $statutDevis;
  194.         return $this;
  195.     }
  196.     public function getToken(): ?string
  197.     {
  198.         return $this->token;
  199.     }
  200.     public function setToken(?string $token): self
  201.     {
  202.         $this->token $token;
  203.         return $this;
  204.     }
  205.     public function getSite(): ?Site
  206.     {
  207.         return $this->site;
  208.     }
  209.     public function setSite(?Site $site): self
  210.     {
  211.         $this->site $site;
  212.         return $this;
  213.     }
  214.     public function getTotalHt(): ?float
  215.     {
  216.         return $this->totalHt;
  217.     }
  218.     public function setTotalHt(?float $totalHt): self
  219.     {
  220.         $this->totalHt $totalHt;
  221.         return $this;
  222.     }
  223.     public function getTotalRemise(): ?float
  224.     {
  225.         return $this->totalRemise;
  226.     }
  227.     public function setTotalRemise(?float $totalRemise): self
  228.     {
  229.         $this->totalRemise $totalRemise;
  230.         return $this;
  231.     }
  232.     public function getTotalApresRemise(): ?float
  233.     {
  234.         return $this->totalApresRemise;
  235.     }
  236.     public function setTotalApresRemise(?float $totalApresRemise): self
  237.     {
  238.         $this->totalApresRemise $totalApresRemise;
  239.         return $this;
  240.     }
  241.     public function getClientSignature(): ?string
  242.     {
  243.         return $this->clientSignature;
  244.     }
  245.     public function setClientSignature(?string $clientSignature): self
  246.     {
  247.         $this->clientSignature $clientSignature;
  248.         return $this;
  249.     }
  250.     public function getCreatedAt(): ?\DateTimeImmutable
  251.     {
  252.         return $this->createdAt;
  253.     }
  254.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  255.     {
  256.         $this->createdAt $createdAt;
  257.         return $this;
  258.     }
  259.     /**
  260.      * @return Collection<int, DemandeDevisLigne>
  261.      */
  262.     public function getDemandeDevisLignes(): Collection
  263.     {
  264.         return $this->demandeDevisLignes;
  265.     }
  266.     public function addDemandeDevisLigne(DemandeDevisLigne $demandeDevisLigne): self
  267.     {
  268.         if (!$this->demandeDevisLignes->contains($demandeDevisLigne)) {
  269.             $this->demandeDevisLignes[] = $demandeDevisLigne;
  270.             $demandeDevisLigne->setDemandeDevisEntete($this);
  271.         }
  272.         return $this;
  273.     }
  274.     public function removeDemandeDevisLigne(DemandeDevisLigne $demandeDevisLigne): self
  275.     {
  276.         if ($this->demandeDevisLignes->removeElement($demandeDevisLigne)) {
  277.             // set the owning side to null (unless already changed)
  278.             if ($demandeDevisLigne->getDemandeDevisEntete() === $this) {
  279.                 $demandeDevisLigne->setDemandeDevisEntete(null);
  280.             }
  281.         }
  282.         return $this;
  283.     }
  284.     public function getEmail(): ?string
  285.     {
  286.         return $this->email;
  287.     }
  288.     public function setEmail(?string $email): self
  289.     {
  290.         $this->email $email;
  291.         return $this;
  292.     }
  293.     public function getAccepted(): ?string
  294.     {
  295.         return $this->accepted;
  296.     }
  297.     public function setAccepted(?string $accepted): self
  298.     {
  299.         $this->accepted $accepted;
  300.         return $this;
  301.     }
  302. }