src/Entity/Notification.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\NotificationRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassNotificationRepository::class)]
  8. #[ApiResource]
  9. class Notification
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'notifications')]
  16.     private ?User $users null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $title null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $body null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $type null;
  23.     #[ORM\ManyToOne(inversedBy'notifications')]
  24.     private ?MediaObject $image null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $dateEntered null;
  27.     #[ORM\Column(length100nullabletrue)]
  28.     private ?string $status null;
  29.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  30.     private ?string $error null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  32.     private ?\DateTimeInterface $dateSend null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?int $priority null;
  35.     #[ORM\Column(length100nullabletrue)]
  36.     private ?string $sender null;
  37.     #[ORM\Column(length100nullabletrue)]
  38.     private ?string $ns_msg_id null;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getUsers(): ?User
  44.     {
  45.         return $this->users;
  46.     }
  47.     public function setUsers(?User $users): static
  48.     {
  49.         $this->users $users;
  50.         return $this;
  51.     }
  52.     public function getTitle(): ?string
  53.     {
  54.         return $this->title;
  55.     }
  56.     public function setTitle(string $title): static
  57.     {
  58.         $this->title $title;
  59.         return $this;
  60.     }
  61.     public function getBody(): ?string
  62.     {
  63.         return $this->body;
  64.     }
  65.     public function setBody(?string $body): static
  66.     {
  67.         $this->body $body;
  68.         return $this;
  69.     }
  70.     public function getType(): ?string
  71.     {
  72.         return $this->type;
  73.     }
  74.     public function setType(?string $type): static
  75.     {
  76.         $this->type $type;
  77.         return $this;
  78.     }
  79.     public function getImage(): ?MediaObject
  80.     {
  81.         return $this->image;
  82.     }
  83.     public function setImage(?MediaObject $image): static
  84.     {
  85.         $this->image $image;
  86.         return $this;
  87.     }
  88.     public function getDateEntered(): ?\DateTimeInterface
  89.     {
  90.         return $this->dateEntered;
  91.     }
  92.     public function setDateEntered(?\DateTimeInterface $dateEntered): static
  93.     {
  94.         $this->dateEntered $dateEntered;
  95.         return $this;
  96.     }
  97.     public function getStatus(): ?string
  98.     {
  99.         return $this->status;
  100.     }
  101.     public function setStatus(?string $status): static
  102.     {
  103.         $this->status $status;
  104.         return $this;
  105.     }
  106.     public function getError(): ?string
  107.     {
  108.         return $this->error;
  109.     }
  110.     public function setError(string $error): static
  111.     {
  112.         $this->error $error;
  113.         return $this;
  114.     }
  115.     public function getDateSend(): ?\DateTimeInterface
  116.     {
  117.         return $this->dateSend;
  118.     }
  119.     public function setDateSend(?\DateTimeInterface $dateSend): static
  120.     {
  121.         $this->dateSend $dateSend;
  122.         return $this;
  123.     }
  124.     public function getPriority(): ?int
  125.     {
  126.         return $this->priority;
  127.     }
  128.     public function setPriority(?int $priority): static
  129.     {
  130.         $this->priority $priority;
  131.         return $this;
  132.     }
  133.     public function getSender(): ?string
  134.     {
  135.         return $this->sender;
  136.     }
  137.     public function setSender(?string $sender): static
  138.     {
  139.         $this->sender $sender;
  140.         return $this;
  141.     }
  142.     public function getNsMsgId(): ?string
  143.     {
  144.         return $this->ns_msg_id;
  145.     }
  146.     public function setNsMsgId(?string $ns_msg_id): static
  147.     {
  148.         $this->ns_msg_id $ns_msg_id;
  149.         return $this;
  150.     }
  151. }