src/Entity/EnteteDevis.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EnteteDevisRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=EnteteDevisRepository::class)
  9.  */
  10. class EnteteDevis
  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 $reference;
  34.     /**
  35.      * @ORM\Column(type="datetime_immutable", nullable=true)
  36.      */
  37.     private $created_at;
  38.     /**
  39.      * @ORM\OneToMany(targetEntity=LigneDevis::class, mappedBy="entetedevis", cascade={"persist"})
  40.      */
  41.     private $ligneDevis;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $client;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $typeclient;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Organisme::class)
  52.      */
  53.     private $organisme;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity=Entreprise::class)
  56.      */
  57.     private $entreprise;
  58.     /**
  59.      * @ORM\ManyToOne(targetEntity=Tier::class)
  60.      */
  61.     private $tier;
  62.     /**
  63.      * @ORM\Column(type="text", nullable=true)
  64.      */
  65.     private $informationcomplementaire;
  66.     /**
  67.      * @ORM\Column(type="string", length=255, nullable=true)
  68.      */
  69.     private $statutdevis;
  70.     /**
  71.      * @ORM\Column(type="string", length=255, nullable=true)
  72.      */
  73.     private $token;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=Site::class, inversedBy="enteteDevis")
  76.      */
  77.     private $site;
  78.     public function __construct()
  79.     {
  80.         $this->ligneDevis = new ArrayCollection();
  81.     }
  82.     public function getId(): ?int
  83.     {
  84.         return $this->id;
  85.     }
  86.     public function getNumerodevis(): ?string
  87.     {
  88.         return $this->numerodevis;
  89.     }
  90.     public function setNumerodevis(?string $numerodevis): self
  91.     {
  92.         $this->numerodevis $numerodevis;
  93.         return $this;
  94.     }
  95.     public function getDatedevis(): ?\DateTimeInterface
  96.     {
  97.         return $this->datedevis;
  98.     }
  99.     public function setDatedevis(?\DateTimeInterface $datedevis): self
  100.     {
  101.         $this->datedevis $datedevis;
  102.         return $this;
  103.     }
  104.     public function getDatefinvalidite(): ?\DateTimeInterface
  105.     {
  106.         return $this->datefinvalidite;
  107.     }
  108.     public function setDatefinvalidite(?\DateTimeInterface $datefinvalidite): self
  109.     {
  110.         $this->datefinvalidite $datefinvalidite;
  111.         return $this;
  112.     }
  113.     public function getReference(): ?string
  114.     {
  115.         return $this->reference;
  116.     }
  117.     public function setReference(?string $reference): self
  118.     {
  119.         $this->reference $reference;
  120.         return $this;
  121.     }
  122.     public function getCreatedAt(): ?\DateTimeImmutable
  123.     {
  124.         return $this->created_at;
  125.     }
  126.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  127.     {
  128.         $this->created_at $created_at;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return Collection<int, LigneDevis>
  133.      */
  134.     public function getLigneDevis(): Collection
  135.     {
  136.         return $this->ligneDevis;
  137.     }
  138.     public function addLigneDevi(LigneDevis $ligneDevi): self
  139.     {
  140.         if (!$this->ligneDevis->contains($ligneDevi)) {
  141.             $this->ligneDevis[] = $ligneDevi;
  142.             $ligneDevi->setEntetedevis($this);
  143.         }
  144.         return $this;
  145.     }
  146.     public function removeLigneDevi(LigneDevis $ligneDevi): self
  147.     {
  148.         if ($this->ligneDevis->removeElement($ligneDevi)) {
  149.             // set the owning side to null (unless already changed)
  150.             if ($ligneDevi->getEntetedevis() === $this) {
  151.                 $ligneDevi->setEntetedevis(null);
  152.             }
  153.         }
  154.         return $this;
  155.     }
  156.     public function getClient(): ?string
  157.     {
  158.         return $this->client;
  159.     }
  160.     public function setClient(?string $client): self
  161.     {
  162.         $this->client $client;
  163.         return $this;
  164.     }
  165.     public function getTypeclient(): ?string
  166.     {
  167.         return $this->typeclient;
  168.     }
  169.     public function setTypeclient(?string $typeclient): self
  170.     {
  171.         $this->typeclient $typeclient;
  172.         return $this;
  173.     }
  174.     public function getOrganisme(): ?Organisme
  175.     {
  176.         return $this->organisme;
  177.     }
  178.     public function setOrganisme(?Organisme $organisme): self
  179.     {
  180.         $this->organisme $organisme;
  181.         return $this;
  182.     }
  183.     public function getEntreprise(): ?Entreprise
  184.     {
  185.         return $this->entreprise;
  186.     }
  187.     public function setEntreprise(?Entreprise $entreprise): self
  188.     {
  189.         $this->entreprise $entreprise;
  190.         return $this;
  191.     }
  192.     public function getTier(): ?Tier
  193.     {
  194.         return $this->tier;
  195.     }
  196.     public function setTier(?Tier $tier): self
  197.     {
  198.         $this->tier $tier;
  199.         return $this;
  200.     }
  201.     public function getInformationcomplementaire(): ?string
  202.     {
  203.         return $this->informationcomplementaire;
  204.     }
  205.     public function setInformationcomplementaire(?string $informationcomplementaire): self
  206.     {
  207.         $this->informationcomplementaire $informationcomplementaire;
  208.         return $this;
  209.     }
  210.     public function getStatutdevis(): ?string
  211.     {
  212.         return $this->statutdevis;
  213.     }
  214.     public function setStatutdevis(?string $statutdevis): self
  215.     {
  216.         $this->statutdevis $statutdevis;
  217.         return $this;
  218.     }
  219.     public function getToken(): ?string
  220.     {
  221.         return $this->token;
  222.     }
  223.     public function setToken(?string $token): self
  224.     {
  225.         $this->token $token;
  226.         return $this;
  227.     }
  228.     public function getSite(): ?Site
  229.     {
  230.         return $this->site;
  231.     }
  232.     public function setSite(?Site $site): self
  233.     {
  234.         $this->site $site;
  235.         return $this;
  236.     }
  237. }