<?php
namespace App\Entity\Gos;
use App\Repository\Gos\GiftNotificationRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=GiftNotificationRepository::class)
*/
class GiftNotification
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=Gift::class, inversedBy="giftNotification", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $gift;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $sentAt;
public function getId(): ?int
{
return $this->id;
}
public function getGift(): ?Gift
{
return $this->gift;
}
public function setGift(Gift $gift): self
{
$this->gift = $gift;
return $this;
}
public function getSentAt(): ?\DateTimeInterface
{
return $this->sentAt;
}
public function setSentAt(?\DateTimeInterface $sentAt): self
{
$this->sentAt = $sentAt;
return $this;
}
}