src/Entity/Lancement.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LancementRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassLancementRepository::class)]
  6. class Lancement
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private $numero_lancement;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $reference;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $coloris;
  18.     #[ORM\ManyToOne(targetEntityTaille::class, inversedBy'lancements')]
  19.     private $taille;
  20.     #[ORM\ManyToOne(targetEntityBonnet::class, inversedBy'lancements')]
  21.     private $bonnet;
  22.     #[ORM\Column(type'float'nullabletrue)]
  23.     private $quantite;
  24.     #[ORM\ManyToOne(targetEntityAtelier::class, inversedBy'lancements')]
  25.     private $atelier;
  26.     #[ORM\Column(type'datetime'nullabletrue)]
  27.     private $date;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getNumeroLancement(): ?string
  33.     {
  34.         return $this->numero_lancement;
  35.     }
  36.     public function setNumeroLancement(?string $numero_lancement): self
  37.     {
  38.         $this->numero_lancement $numero_lancement;
  39.         return $this;
  40.     }
  41.     public function getReference(): ?string
  42.     {
  43.         return $this->reference;
  44.     }
  45.     public function setReference(?string $reference): self
  46.     {
  47.         $this->reference $reference;
  48.         return $this;
  49.     }
  50.     public function getColoris(): ?string
  51.     {
  52.         return $this->coloris;
  53.     }
  54.     public function setColoris(?string $coloris): self
  55.     {
  56.         $this->coloris $coloris;
  57.         return $this;
  58.     }
  59.     public function getTaille(): ?Taille
  60.     {
  61.         return $this->taille;
  62.     }
  63.     public function setTaille(?Taille $taille): self
  64.     {
  65.         $this->taille $taille;
  66.         return $this;
  67.     }
  68.     public function getBonnet(): ?Bonnet
  69.     {
  70.         return $this->bonnet;
  71.     }
  72.     public function setBonnet(?Bonnet $bonnet): self
  73.     {
  74.         $this->bonnet $bonnet;
  75.         return $this;
  76.     }
  77.     public function getQuantite(): ?float
  78.     {
  79.         return $this->quantite;
  80.     }
  81.     public function setQuantite(?float $quantite): self
  82.     {
  83.         $this->quantite $quantite;
  84.         return $this;
  85.     }
  86.     public function getAtelier(): ?Atelier
  87.     {
  88.         return $this->atelier;
  89.     }
  90.     public function setAtelier(?Atelier $atelier): self
  91.     {
  92.         $this->atelier $atelier;
  93.         return $this;
  94.     }
  95.     public function getDate(): ?\DateTimeInterface
  96.     {
  97.         return $this->date;
  98.     }
  99.     public function setDate(?\DateTimeInterface $date): self
  100.     {
  101.         $this->date $date;
  102.         return $this;
  103.     }
  104. }