src/Entity/Gos/RenewalOffer/Freebie.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\RenewalOffer;
  3. use App\Entity\Gos\ProductVariant;
  4. use App\Repository\Gos\RenewalOffer\FreebieRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Table(name="renewal_freebie")
  8.  * @ORM\Entity(repositoryClass=FreebieRepository::class)
  9.  */
  10. class Freebie
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=RenewalOffer::class, inversedBy="freebies")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $renewalOffer;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=ProductVariant::class)
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $productVariant;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $label;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getRenewalOffer(): ?RenewalOffer
  37.     {
  38.         return $this->renewalOffer;
  39.     }
  40.     public function setRenewalOffer(?RenewalOffer $renewalOffer): self
  41.     {
  42.         $this->renewalOffer $renewalOffer;
  43.         return $this;
  44.     }
  45.     public function getProductVariant(): ?ProductVariant
  46.     {
  47.         return $this->productVariant;
  48.     }
  49.     public function setProductVariant(?ProductVariant $productVariant): self
  50.     {
  51.         $this->productVariant $productVariant;
  52.         return $this;
  53.     }
  54.     public function getLabel(): ?string
  55.     {
  56.         return $this->label;
  57.     }
  58.     public function setLabel(string $label): self
  59.     {
  60.         $this->label $label;
  61.         return $this;
  62.     }
  63. }