<?php
namespace App\Entity;
use App\Repository\RewardNotificationRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=RewardNotificationRepository::class)
*/
class RewardNotification
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Rewards::class, inversedBy="rewardNotifications")
* @ORM\JoinColumn(nullable=false)
*/
private $reward;
/**
* @ORM\ManyToOne(targetEntity=Language::class, inversedBy="rewardNotifications")
* @ORM\JoinColumn(nullable=false)
*/
private $language;
/**
* @ORM\Column(type="string", length=255)
*/
private $notification_title;
/**
* @ORM\Column(type="text")
*/
private $notification_body;
public function getId(): ?int
{
return $this->id;
}
public function getReward(): ?Rewards
{
return $this->reward;
}
public function setReward(?Rewards $reward): self
{
$this->reward = $reward;
return $this;
}
public function getLanguage(): ?Language
{
return $this->language;
}
public function setLanguage(?Language $language): self
{
$this->language = $language;
return $this;
}
public function getNotificationTitle(): ?string
{
return $this->notification_title;
}
public function setNotificationTitle(string $notification_title): self
{
$this->notification_title = $notification_title;
return $this;
}
public function getNotificationBody(): ?string
{
return $this->notification_body;
}
public function setNotificationBody(string $notification_body): self
{
$this->notification_body = $notification_body;
return $this;
}
}