src/Entity/RewardNotification.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RewardNotificationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=RewardNotificationRepository::class)
  7.  */
  8. class RewardNotification
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Rewards::class, inversedBy="rewardNotifications")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $reward;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Language::class, inversedBy="rewardNotifications")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $language;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $notification_title;
  30.     /**
  31.      * @ORM\Column(type="text")
  32.      */
  33.     private $notification_body;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getReward(): ?Rewards
  39.     {
  40.         return $this->reward;
  41.     }
  42.     public function setReward(?Rewards $reward): self
  43.     {
  44.         $this->reward $reward;
  45.         return $this;
  46.     }
  47.     public function getLanguage(): ?Language
  48.     {
  49.         return $this->language;
  50.     }
  51.     public function setLanguage(?Language $language): self
  52.     {
  53.         $this->language $language;
  54.         return $this;
  55.     }
  56.     public function getNotificationTitle(): ?string
  57.     {
  58.         return $this->notification_title;
  59.     }
  60.     public function setNotificationTitle(string $notification_title): self
  61.     {
  62.         $this->notification_title $notification_title;
  63.         return $this;
  64.     }
  65.     public function getNotificationBody(): ?string
  66.     {
  67.         return $this->notification_body;
  68.     }
  69.     public function setNotificationBody(string $notification_body): self
  70.     {
  71.         $this->notification_body $notification_body;
  72.         return $this;
  73.     }
  74. }