<?php
namespace App\Entity;
use App\Repository\LancementRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: LancementRepository::class)]
class Lancement
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $numero_lancement;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $reference;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $coloris;
#[ORM\ManyToOne(targetEntity: Taille::class, inversedBy: 'lancements')]
private $taille;
#[ORM\ManyToOne(targetEntity: Bonnet::class, inversedBy: 'lancements')]
private $bonnet;
#[ORM\Column(type: 'float', nullable: true)]
private $quantite;
#[ORM\ManyToOne(targetEntity: Atelier::class, inversedBy: 'lancements')]
private $atelier;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date;
public function getId(): ?int
{
return $this->id;
}
public function getNumeroLancement(): ?string
{
return $this->numero_lancement;
}
public function setNumeroLancement(?string $numero_lancement): self
{
$this->numero_lancement = $numero_lancement;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getColoris(): ?string
{
return $this->coloris;
}
public function setColoris(?string $coloris): self
{
$this->coloris = $coloris;
return $this;
}
public function getTaille(): ?Taille
{
return $this->taille;
}
public function setTaille(?Taille $taille): self
{
$this->taille = $taille;
return $this;
}
public function getBonnet(): ?Bonnet
{
return $this->bonnet;
}
public function setBonnet(?Bonnet $bonnet): self
{
$this->bonnet = $bonnet;
return $this;
}
public function getQuantite(): ?float
{
return $this->quantite;
}
public function setQuantite(?float $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getAtelier(): ?Atelier
{
return $this->atelier;
}
public function setAtelier(?Atelier $atelier): self
{
$this->atelier = $atelier;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
}