src/Entity/Gos/ProductVariantReviewLink.php line 11

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