src/Entity/Alertes/MagasinMarquesAlertes.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Alertes;
  3. use App\Entity\Adherent\Magasin;
  4. use App\Entity\Adherent\MagasinMarques;
  5. use App\Repository\Alertes\MagasinMarquesAlertesRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassMagasinMarquesAlertesRepository::class)]
  8. class MagasinMarquesAlertes
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'MagasinMarquesAlertes')]
  15.     #[ORM\JoinColumn(referencedColumnName"k_adherent",nullablefalse)]
  16.     private ?Magasin $k_adherent null;
  17.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  18.     #[ORM\JoinColumn(nullablefalse,onDelete"CASCADE")]
  19.     private ?MagasinMarques $marqueAdh null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $type null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getKAdherent(): ?Magasin
  27.     {
  28.         return $this->k_adherent;
  29.     }
  30.     public function setKAdherent(?Magasin $k_adherent): self
  31.     {
  32.         $this->k_adherent $k_adherent;
  33.         return $this;
  34.     }
  35.     public function getMarqueAdh(): ?MagasinMarques
  36.     {
  37.         return $this->marqueAdh;
  38.     }
  39.     public function setMarqueAdh(MagasinMarques $marqueAdh): self
  40.     {
  41.         $this->marqueAdh $marqueAdh;
  42.         return $this;
  43.     }
  44.     public function getType(): ?string
  45.     {
  46.         return $this->type;
  47.     }
  48.     public function setType(string $type): self
  49.     {
  50.         $this->type $type;
  51.         return $this;
  52.     }
  53. }