<?phpnamespace App\Entity;use App\Repository\DonneeReferenceRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DonneeReferenceRepository::class)]class DonneeReference{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $reference; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $coloris; #[ORM\ManyToOne(targetEntity: Bonnet::class, inversedBy: 'donneeReferences')] private $bonnet; #[ORM\ManyToOne(targetEntity: Taille::class, inversedBy: 'donneeReferences')] private $taille; #[ORM\Column(type: 'boolean', nullable: true)] private int $cotraitance = 0; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $magasin; public function getId(): ?int { return $this->id; } 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 getBonnet(): ?Bonnet { return $this->bonnet; } public function setBonnet(?Bonnet $bonnet): self { $this->bonnet = $bonnet; return $this; } public function getTaille(): ?Taille { return $this->taille; } public function setTaille(?Taille $taille): self { $this->taille = $taille; return $this; } public function getCotraitance(): ?bool { return $this->cotraitance; } public function setCotraitance(?bool $cotraitance): self { $this->cotraitance = $cotraitance; return $this; } public function getMagasin(): ?string { return $this->magasin; } public function setMagasin(?string $magasin): self { $this->magasin = $magasin; return $this; }}