src/Entity/Gos/ProductVariantBundleArchivedCoupon.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Entity\Gos\ArchivedCoupon;
  4. use App\Entity\Gos\ProductVariant;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\ProductVariantBundleArchivedCouponRepository")
  8.  */
  9. class ProductVariantBundleArchivedCoupon
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\ArchivedCoupon")
  19.      * @ORM\JoinColumn(nullable=false,onDelete="CASCADE")
  20.      */
  21.     private $archivedCoupon;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\ProductVariant")
  24.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  25.      */
  26.     private $productVariant;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getArchivedCoupon(): ?ArchivedCoupon
  32.     {
  33.         return $this->archivedCoupon;
  34.     }
  35.     public function setArchivedCoupon(?ArchivedCoupon $archivedCoupon): self
  36.     {
  37.         $this->archivedCoupon $archivedCoupon;
  38.         return $this;
  39.     }
  40.     public function getProductVariant(): ?ProductVariant
  41.     {
  42.         return $this->productVariant;
  43.     }
  44.     public function setProductVariant(?ProductVariant $productVariant): self
  45.     {
  46.         $this->productVariant $productVariant;
  47.         return $this;
  48.     }
  49. }