src/Entity/UserUnread.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\UserUnreadRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\HasLifecycleCallbacks]
  7. #[ORM\Entity(repositoryClassUserUnreadRepository::class)]
  8. class UserUnread
  9. {
  10.     use Timestampable;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'notifications')]
  16.     private ?User $user null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?int $absenceLastConnectionCount null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?int $lateLastConnectionCount null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?int $homeworkLastConnectionCount null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?int $noteLastConnectionCount null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?int $blogLastConnectionCount null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?int $eventLastConnectionCount null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?int $discussionMessageLastConnectionCount null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?int $punishLastConnectionCount null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?int $docInfoLastConnectionCount null;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getUser(): ?User
  40.     {
  41.         return $this->user;
  42.     }
  43.     public function setUser(?User $user): static
  44.     {
  45.         $this->user $user;
  46.         return $this;
  47.     }
  48.     public function getAbsenceLastConnectionCount(): ?int
  49.     {
  50.         return $this->absenceLastConnectionCount;
  51.     }
  52.     public function setAbsenceLastConnectionCount(int $absenceLastConnectionCount): static
  53.     {
  54.         $this->absenceLastConnectionCount $absenceLastConnectionCount;
  55.         return $this;
  56.     }
  57.     public function getLateLastConnectionCount(): ?int
  58.     {
  59.         return $this->lateLastConnectionCount;
  60.     }
  61.     public function setLateLastConnectionCount(?int $lateLastConnectionCount): static
  62.     {
  63.         $this->lateLastConnectionCount $lateLastConnectionCount;
  64.         return $this;
  65.     }
  66.     public function getHomeworkLastConnectionCount(): ?int
  67.     {
  68.         return $this->homeworkLastConnectionCount;
  69.     }
  70.     public function setHomeworkLastConnectionCount(?int $homeworkLastConnectionCount): static
  71.     {
  72.         $this->homeworkLastConnectionCount $homeworkLastConnectionCount;
  73.         return $this;
  74.     }
  75.     public function getNoteLastConnectionCount(): ?int
  76.     {
  77.         return $this->noteLastConnectionCount;
  78.     }
  79.     public function setNoteLastConnectionCount(?int $noteLastConnectionCount): static
  80.     {
  81.         $this->noteLastConnectionCount $noteLastConnectionCount;
  82.         return $this;
  83.     }
  84.     public function getBlogLastConnectionCount(): ?int
  85.     {
  86.         return $this->blogLastConnectionCount;
  87.     }
  88.     public function setBlogLastConnectionCount(?int $blogLastConnectionCount): static
  89.     {
  90.         $this->blogLastConnectionCount $blogLastConnectionCount;
  91.         return $this;
  92.     }
  93.     public function getEventLastConnectionCount(): ?int
  94.     {
  95.         return $this->eventLastConnectionCount;
  96.     }
  97.     public function setEventLastConnectionCount(?int $eventLastConnectionCount): static
  98.     {
  99.         $this->eventLastConnectionCount $eventLastConnectionCount;
  100.         return $this;
  101.     }
  102.     public function getDiscussionMessageLastConnectionCount(): ?int
  103.     {
  104.         return $this->discussionMessageLastConnectionCount;
  105.     }
  106.     public function setDiscussionMessageLastConnectionCount(?int $discussionMessageLastConnectionCount): static
  107.     {
  108.         $this->discussionMessageLastConnectionCount $discussionMessageLastConnectionCount;
  109.         return $this;
  110.     }
  111.     public function getPunishLastConnectionCount(): ?int
  112.     {
  113.         return $this->punishLastConnectionCount;
  114.     }
  115.     public function setPunishLastConnectionCount(?int $punishLastConnectionCount): static
  116.     {
  117.         $this->punishLastConnectionCount $punishLastConnectionCount;
  118.         return $this;
  119.     }
  120.     public function getDocInfoLastConnectionCount(): ?int
  121.     {
  122.         return $this->docInfoLastConnectionCount;
  123.     }
  124.     public function setDocInfoLastConnectionCount(?int $docInfoLastConnectionCount): static
  125.     {
  126.         $this->docInfoLastConnectionCount $docInfoLastConnectionCount;
  127.         return $this;
  128.     }
  129. }