src/Entity/Notifications.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\NotificationsRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\HasLifecycleCallbacks]
  7. #[ORM\Entity(repositoryClassNotificationsRepository::class)]
  8. class Notifications
  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.     #[ORM\ManyToOne(inversedBy'notifications')]
  36.     private ?SchoolYear $year null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?int $messageGroup_lastConnexionCount null;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getUser(): ?User
  44.     {
  45.         return $this->user;
  46.     }
  47.     public function setUser(?User $user): static
  48.     {
  49.         $this->user $user;
  50.         return $this;
  51.     }
  52.     public function getAbsenceLastConnectionCount(): ?int
  53.     {
  54.         return $this->absenceLastConnectionCount;
  55.     }
  56.     public function setAbsenceLastConnectionCount(int $absenceLastConnectionCount): static
  57.     {
  58.         $this->absenceLastConnectionCount $absenceLastConnectionCount;
  59.         return $this;
  60.     }
  61.     public function getLateLastConnectionCount(): ?int
  62.     {
  63.         return $this->lateLastConnectionCount;
  64.     }
  65.     public function setLateLastConnectionCount(?int $lateLastConnectionCount): static
  66.     {
  67.         $this->lateLastConnectionCount $lateLastConnectionCount;
  68.         return $this;
  69.     }
  70.     public function getHomeworkLastConnectionCount(): ?int
  71.     {
  72.         return $this->homeworkLastConnectionCount;
  73.     }
  74.     public function setHomeworkLastConnectionCount(?int $homeworkLastConnectionCount): static
  75.     {
  76.         $this->homeworkLastConnectionCount $homeworkLastConnectionCount;
  77.         return $this;
  78.     }
  79.     public function getNoteLastConnectionCount(): ?int
  80.     {
  81.         return $this->noteLastConnectionCount;
  82.     }
  83.     public function setNoteLastConnectionCount(?int $noteLastConnectionCount): static
  84.     {
  85.         $this->noteLastConnectionCount $noteLastConnectionCount;
  86.         return $this;
  87.     }
  88.     public function getBlogLastConnectionCount(): ?int
  89.     {
  90.         return $this->blogLastConnectionCount;
  91.     }
  92.     public function setBlogLastConnectionCount(?int $blogLastConnectionCount): static
  93.     {
  94.         $this->blogLastConnectionCount $blogLastConnectionCount;
  95.         return $this;
  96.     }
  97.     public function getEventLastConnectionCount(): ?int
  98.     {
  99.         return $this->eventLastConnectionCount;
  100.     }
  101.     public function setEventLastConnectionCount(?int $eventLastConnectionCount): static
  102.     {
  103.         $this->eventLastConnectionCount $eventLastConnectionCount;
  104.         return $this;
  105.     }
  106.     public function getDiscussionMessageLastConnectionCount(): ?int
  107.     {
  108.         return $this->discussionMessageLastConnectionCount;
  109.     }
  110.     public function setDiscussionMessageLastConnectionCount(?int $discussionMessageLastConnectionCount): static
  111.     {
  112.         $this->discussionMessageLastConnectionCount $discussionMessageLastConnectionCount;
  113.         return $this;
  114.     }
  115.     public function getPunishLastConnectionCount(): ?int
  116.     {
  117.         return $this->punishLastConnectionCount;
  118.     }
  119.     public function setPunishLastConnectionCount(?int $punishLastConnectionCount): static
  120.     {
  121.         $this->punishLastConnectionCount $punishLastConnectionCount;
  122.         return $this;
  123.     }
  124.     public function getDocInfoLastConnectionCount(): ?int
  125.     {
  126.         return $this->docInfoLastConnectionCount;
  127.     }
  128.     public function setDocInfoLastConnectionCount(?int $docInfoLastConnectionCount): static
  129.     {
  130.         $this->docInfoLastConnectionCount $docInfoLastConnectionCount;
  131.         return $this;
  132.     }
  133.     public function getYear(): ?SchoolYear
  134.     {
  135.         return $this->year;
  136.     }
  137.     public function setYear(?SchoolYear $year): static
  138.     {
  139.         $this->year $year;
  140.         return $this;
  141.     }
  142.     public function getMessageGroupLastConnexionCount(): ?int
  143.     {
  144.         return $this->messageGroup_lastConnexionCount;
  145.     }
  146.     public function setMessageGroupLastConnexionCount(?int $messageGroup_lastConnexionCount): static
  147.     {
  148.         $this->messageGroup_lastConnexionCount $messageGroup_lastConnexionCount;
  149.         return $this;
  150.     }
  151. }