src/Entity/Gos/GiftNotification.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\GiftNotificationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=GiftNotificationRepository::class)
  7.  */
  8. class GiftNotification
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\OneToOne(targetEntity=Gift::class, inversedBy="giftNotification", cascade={"persist", "remove"})
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $gift;
  21.     /**
  22.      * @ORM\Column(type="datetime", nullable=true)
  23.      */
  24.     private $sentAt;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getGift(): ?Gift
  30.     {
  31.         return $this->gift;
  32.     }
  33.     public function setGift(Gift $gift): self
  34.     {
  35.         $this->gift $gift;
  36.         return $this;
  37.     }
  38.     public function getSentAt(): ?\DateTimeInterface
  39.     {
  40.         return $this->sentAt;
  41.     }
  42.     public function setSentAt(?\DateTimeInterface $sentAt): self
  43.     {
  44.         $this->sentAt $sentAt;
  45.         return $this;
  46.     }
  47. }
  48.