src/Entity/Offer/OfferLinkList.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Offer;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass=OfferLinkListRepository::class)
  6.  */
  7. class OfferLinkList
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="offerLinkList")
  17.      * @ORM\JoinColumn(nullable=true)
  18.      */
  19.     private $offer;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getOffer(): ?offer
  25.     {
  26.         return $this->offer;
  27.     }
  28.     public function setOffer(?offer $offer): self
  29.     {
  30.         $this->offer = $offer;
  31.         return $this;
  32.     }
  33.    
  34. }