src/Entity/Vente.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VenteRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassVenteRepository::class)]
  9. class Vente
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length30)]
  16.     private ?string $TypeClient null;
  17.     #[ORM\Column(length30)]
  18.     private ?string $TypeVente null;
  19.     #[ORM\Column(length30)]
  20.     private ?string $Statut null;
  21.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  22.     private ?string $CommentaireInterne null;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $CommentaireClient null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $Email null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $Telephone null;
  29.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  30.     private ?string $Adresse null;
  31.     #[ORM\Column(length20nullabletrue)]
  32.     private ?string $CodePostal null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $Ville null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $Societe null;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $NomComplet null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $ReferenceChantier null;
  41.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  42.     private ?\DateTimeInterface $DelaiSouhaite null;
  43.     #[ORM\Column]
  44.     private ?bool $Imperatif null;
  45.     #[ORM\OneToMany(mappedBy'Vente'targetEntityPiece::class, orphanRemovaltrue)]
  46.     private Collection $pieces;
  47.     public function __construct()
  48.     {
  49.         $this->pieces = new ArrayCollection();
  50.     }
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getTypeClient(): ?string
  56.     {
  57.         return $this->TypeClient;
  58.     }
  59.     public function setTypeClient(string $TypeClient): self
  60.     {
  61.         $this->TypeClient $TypeClient;
  62.         return $this;
  63.     }
  64.     public function getTypeVente(): ?string
  65.     {
  66.         return $this->TypeVente;
  67.     }
  68.     public function setTypeVente(string $TypeVente): self
  69.     {
  70.         $this->TypeVente $TypeVente;
  71.         return $this;
  72.     }
  73.     public function getStatut(): ?string
  74.     {
  75.         return $this->Statut;
  76.     }
  77.     public function setStatut(string $Statut): self
  78.     {
  79.         $this->Statut $Statut;
  80.         return $this;
  81.     }
  82.     public function getCommentaireInterne(): ?string
  83.     {
  84.         return $this->CommentaireInterne;
  85.     }
  86.     public function setCommentaireInterne(?string $CommentaireInterne): self
  87.     {
  88.         $this->CommentaireInterne $CommentaireInterne;
  89.         return $this;
  90.     }
  91.     public function getCommentaireClient(): ?string
  92.     {
  93.         return $this->CommentaireClient;
  94.     }
  95.     public function setCommentaireClient(?string $CommentaireClient): self
  96.     {
  97.         $this->CommentaireClient $CommentaireClient;
  98.         return $this;
  99.     }
  100.     public function getEmail(): ?string
  101.     {
  102.         return $this->Email;
  103.     }
  104.     public function setEmail(?string $Email): self
  105.     {
  106.         $this->Email $Email;
  107.         return $this;
  108.     }
  109.     public function getTelephone(): ?string
  110.     {
  111.         return $this->Telephone;
  112.     }
  113.     public function setTelephone(?string $Telephone): self
  114.     {
  115.         $this->Telephone $Telephone;
  116.         return $this;
  117.     }
  118.     public function getAdresse(): ?string
  119.     {
  120.         return $this->Adresse;
  121.     }
  122.     public function setAdresse(?string $Adresse): self
  123.     {
  124.         $this->Adresse $Adresse;
  125.         return $this;
  126.     }
  127.     public function getCodePostal(): ?string
  128.     {
  129.         return $this->CodePostal;
  130.     }
  131.     public function setCodePostal(?string $CodePostal): self
  132.     {
  133.         $this->CodePostal $CodePostal;
  134.         return $this;
  135.     }
  136.     public function getVille(): ?string
  137.     {
  138.         return $this->Ville;
  139.     }
  140.     public function setVille(?string $Ville): self
  141.     {
  142.         $this->Ville $Ville;
  143.         return $this;
  144.     }
  145.     public function getSociete(): ?string
  146.     {
  147.         return $this->Societe;
  148.     }
  149.     public function setSociete(?string $Societe): self
  150.     {
  151.         $this->Societe $Societe;
  152.         return $this;
  153.     }
  154.     public function getNomComplet(): ?string
  155.     {
  156.         return $this->NomComplet;
  157.     }
  158.     public function setNomComplet(?string $NomComplet): self
  159.     {
  160.         $this->NomComplet $NomComplet;
  161.         return $this;
  162.     }
  163.     public function getReferenceChantier(): ?string
  164.     {
  165.         return $this->ReferenceChantier;
  166.     }
  167.     public function setReferenceChantier(?string $ReferenceChantier): self
  168.     {
  169.         $this->ReferenceChantier $ReferenceChantier;
  170.         return $this;
  171.     }
  172.     public function getDelaiSouhaite(): ?\DateTimeInterface
  173.     {
  174.         return $this->DelaiSouhaite;
  175.     }
  176.     public function setDelaiSouhaite(?\DateTimeInterface $DelaiSouhaite): self
  177.     {
  178.         $this->DelaiSouhaite $DelaiSouhaite;
  179.         return $this;
  180.     }
  181.     public function isImperatif(): ?bool
  182.     {
  183.         return $this->Imperatif;
  184.     }
  185.     public function setImperatif(bool $Imperatif): self
  186.     {
  187.         $this->Imperatif $Imperatif;
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, Piece>
  192.      */
  193.     public function getPieces(): Collection
  194.     {
  195.         return $this->pieces;
  196.     }
  197.     public function addPiece(Piece $piece): self
  198.     {
  199.         if (!$this->pieces->contains($piece)) {
  200.             $this->pieces->add($piece);
  201.             $piece->setVente($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removePiece(Piece $piece): self
  206.     {
  207.         if ($this->pieces->removeElement($piece)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($piece->getVente() === $this) {
  210.                 $piece->setVente(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215. }