src/Entity/NotificationHistory.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationHistoryRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassNotificationHistoryRepository::class)]
  7. class NotificationHistory
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'notificationHistories')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Menu $menu null;
  16.     #[ORM\Column(length2000)]
  17.     private ?string $text null;
  18.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  19.     private ?\DateTimeInterface $createDate null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getMenu(): ?Menu
  25.     {
  26.         return $this->menu;
  27.     }
  28.     public function setMenu(?Menu $menu): self
  29.     {
  30.         $this->menu $menu;
  31.         return $this;
  32.     }
  33.     public function getText(): ?string
  34.     {
  35.         return $this->text;
  36.     }
  37.     public function setText(string $text): self
  38.     {
  39.         $this->text $text;
  40.         return $this;
  41.     }
  42.     public function getCreateDate(): ?\DateTimeInterface
  43.     {
  44.         return $this->createDate;
  45.     }
  46.     public function setCreateDate(\DateTimeInterface $createDate): self
  47.     {
  48.         $this->createDate $createDate;
  49.         return $this;
  50.     }
  51. }