src/Entity/DonneeReference.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DonneeReferenceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassDonneeReferenceRepository::class)]
  6. class DonneeReference
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private $reference;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $coloris;
  16.     #[ORM\ManyToOne(targetEntityBonnet::class, inversedBy'donneeReferences')]
  17.     private $bonnet;
  18.     #[ORM\ManyToOne(targetEntityTaille::class, inversedBy'donneeReferences')]
  19.     private $taille;
  20.     #[ORM\Column(type'boolean'nullabletrue)]
  21.     private int $cotraitance 0;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $magasin;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getReference(): ?string
  29.     {
  30.         return $this->reference;
  31.     }
  32.     public function setReference(?string $reference): self
  33.     {
  34.         $this->reference $reference;
  35.         return $this;
  36.     }
  37.     public function getColoris(): ?string
  38.     {
  39.         return $this->coloris;
  40.     }
  41.     public function setColoris(?string $coloris): self
  42.     {
  43.         $this->coloris $coloris;
  44.         return $this;
  45.     }
  46.     public function getBonnet(): ?Bonnet
  47.     {
  48.         return $this->bonnet;
  49.     }
  50.     public function setBonnet(?Bonnet $bonnet): self
  51.     {
  52.         $this->bonnet $bonnet;
  53.         return $this;
  54.     }
  55.     public function getTaille(): ?Taille
  56.     {
  57.         return $this->taille;
  58.     }
  59.     public function setTaille(?Taille $taille): self
  60.     {
  61.         $this->taille $taille;
  62.         return $this;
  63.     }
  64.     public function getCotraitance(): ?bool
  65.     {
  66.         return $this->cotraitance;
  67.     }
  68.     public function setCotraitance(?bool $cotraitance): self
  69.     {
  70.         $this->cotraitance $cotraitance;
  71.         return $this;
  72.     }
  73.     public function getMagasin(): ?string
  74.     {
  75.         return $this->magasin;
  76.     }
  77.     public function setMagasin(?string $magasin): self
  78.     {
  79.         $this->magasin $magasin;
  80.         return $this;
  81.     }
  82. }