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(strategy'IDENTITY')]
  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.     #[ORM\Column(nullabletrue)]
  40.     private ?bool $allUsers null;
  41.     #[ORM\Column(length100nullabletrue)]
  42.     private ?string $numberAccount null;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getUsers(): ?User
  48.     {
  49.         return $this->users;
  50.     }
  51.     public function setUsers(?User $users): static
  52.     {
  53.         $this->users $users;
  54.         return $this;
  55.     }
  56.     public function getTitle(): ?string
  57.     {
  58.         return $this->title;
  59.     }
  60.     public function setTitle(string $title): static
  61.     {
  62.         $this->title $title;
  63.         return $this;
  64.     }
  65.     public function getBody(): ?string
  66.     {
  67.         return $this->body;
  68.     }
  69.     public function setBody(?string $body): static
  70.     {
  71.         $this->body $body;
  72.         return $this;
  73.     }
  74.     public function getType(): ?string
  75.     {
  76.         return $this->type;
  77.     }
  78.     public function setType(?string $type): static
  79.     {
  80.         $this->type $type;
  81.         return $this;
  82.     }
  83.     public function getImage(): ?MediaObject
  84.     {
  85.         return $this->image;
  86.     }
  87.     public function setImage(?MediaObject $image): static
  88.     {
  89.         $this->image $image;
  90.         return $this;
  91.     }
  92.     public function getDateEntered(): ?\DateTimeInterface
  93.     {
  94.         return $this->dateEntered;
  95.     }
  96.     public function setDateEntered(?\DateTimeInterface $dateEntered): static
  97.     {
  98.         $this->dateEntered $dateEntered;
  99.         return $this;
  100.     }
  101.     public function getStatus(): ?string
  102.     {
  103.         return $this->status;
  104.     }
  105.     public function setStatus(?string $status): static
  106.     {
  107.         $this->status $status;
  108.         return $this;
  109.     }
  110.     public function getError(): ?string
  111.     {
  112.         return $this->error;
  113.     }
  114.     public function setError(string $error): static
  115.     {
  116.         $this->error $error;
  117.         return $this;
  118.     }
  119.     public function getDateSend(): ?\DateTimeInterface
  120.     {
  121.         return $this->dateSend;
  122.     }
  123.     public function setDateSend(?\DateTimeInterface $dateSend): static
  124.     {
  125.         $this->dateSend $dateSend;
  126.         return $this;
  127.     }
  128.     public function getPriority(): ?int
  129.     {
  130.         return $this->priority;
  131.     }
  132.     public function setPriority(?int $priority): static
  133.     {
  134.         $this->priority $priority;
  135.         return $this;
  136.     }
  137.     public function getSender(): ?string
  138.     {
  139.         return $this->sender;
  140.     }
  141.     public function setSender(?string $sender): static
  142.     {
  143.         $this->sender $sender;
  144.         return $this;
  145.     }
  146.     public function getNsMsgId(): ?string
  147.     {
  148.         return $this->ns_msg_id;
  149.     }
  150.     public function setNsMsgId(?string $ns_msg_id): static
  151.     {
  152.         $this->ns_msg_id $ns_msg_id;
  153.         return $this;
  154.     }
  155.     public function isAllUsers(): ?bool
  156.     {
  157.         return $this->allUsers;
  158.     }
  159.     public function setAllUsers(?bool $allUsers): static
  160.     {
  161.         $this->allUsers $allUsers;
  162.         return $this;
  163.     }
  164.     public function getNumberAccount(): ?string
  165.     {
  166.         return $this->numberAccount;
  167.     }
  168.     public function setNumberAccount(?string $numberAccount): static
  169.     {
  170.         $this->numberAccount $numberAccount;
  171.         return $this;
  172.     }
  173. }