src/Entity/ProduitPromotion.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProduitPromotionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProduitPromotionRepository::class)]
  7. class ProduitPromotion
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  14.     private ?\DateTimeInterface $date_debut_promo null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $date_fin_promo null;
  17.     #[ORM\ManyToOne(inversedBy'promotions')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Produit $produit null;
  20.     #[ORM\ManyToOne(inversedBy'promotions')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?Promotion $promotion null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getDateDebutPromo(): ?\DateTimeInterface
  28.     {
  29.         return $this->date_debut_promo;
  30.     }
  31.     public function setDateDebutPromo(\DateTimeInterface $date_debut_promo): self
  32.     {
  33.         $this->date_debut_promo $date_debut_promo;
  34.         return $this;
  35.     }
  36.     public function getDateFinPromo(): ?\DateTimeInterface
  37.     {
  38.         return $this->date_fin_promo;
  39.     }
  40.     public function setDateFinPromo(\DateTimeInterface $date_fin_promo): self
  41.     {
  42.         $this->date_fin_promo $date_fin_promo;
  43.         return $this;
  44.     }
  45.     public function getProduit(): ?Produit
  46.     {
  47.         return $this->produit;
  48.     }
  49.     public function setProduit(?Produit $produit): self
  50.     {
  51.         $this->produit $produit;
  52.         return $this;
  53.     }
  54.     public function getPromotion(): ?Promotion
  55.     {
  56.         return $this->promotion;
  57.     }
  58.     public function setPromotion(?Promotion $promotion): self
  59.     {
  60.         $this->promotion $promotion;
  61.         return $this;
  62.     }
  63. }