src/Entity/AdminNotification.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Traits\CreatedUpdatedTrait;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\AdminNotificationRepository;
  6. /**
  7.  * @ORM\Table(name="v_admin_notification")
  8.  * @ORM\Entity(repositoryClass=AdminNotificationRepository::class)
  9.  */
  10. class AdminNotification
  11. {
  12.     const ADMIN_NOTIFICATION_TYPE_PICTURE_UPLOAD 'PICTURE_UPLOAD';
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $notificationType;
  23.     /**
  24.      * @ORM\Column(type="text")
  25.      */
  26.     private $message;
  27.     /**
  28.      * @ORM\Column(type="json", nullable=true)
  29.      */
  30.     private $arguments;
  31.     /**
  32.      * @ORM\Column(type="boolean")
  33.      */
  34.     private $seen false;
  35.     use CreatedUpdatedTrait;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     /**
  41.      * @return mixed
  42.      */
  43.     public function getNotificationType()
  44.     {
  45.         return $this->notificationType;
  46.     }
  47.     /**
  48.      * @param mixed $notificationType
  49.      */
  50.     public function setNotificationType($notificationType): void
  51.     {
  52.         $this->notificationType $notificationType;
  53.     }
  54.     /**
  55.      * @return bool
  56.      */
  57.     public function isSeen(): ?bool
  58.     {
  59.         return $this->seen;
  60.     }
  61.     /**
  62.      * @param bool $seen
  63.      */
  64.     public function setSeen(?bool $seen): void
  65.     {
  66.         $this->seen $seen;
  67.     }
  68.     /**
  69.      * @return mixed
  70.      */
  71.     public function getMessage()
  72.     {
  73.         return $this->message;
  74.     }
  75.     /**
  76.      * @param mixed $message
  77.      */
  78.     public function setMessage($message): void
  79.     {
  80.         $this->message $message;
  81.     }
  82.     /**
  83.      * @return mixed
  84.      */
  85.     public function getArguments()
  86.     {
  87.         return $this->arguments;
  88.     }
  89.     /**
  90.      * @param mixed $arguments
  91.      */
  92.     public function setArguments($arguments): void
  93.     {
  94.         $this->arguments $arguments;
  95.     }
  96. }