src/Entity/UserSessions.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserSessionsRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassUserSessionsRepository::class)]
  7. class UserSessions
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'userSessions')]
  14.     private ?User $user null;
  15.     #[ORM\Column]
  16.     private ?string $session_id null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $time null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  20.     private ?\DateTimeInterface $dateCreation null;
  21.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  22.     private ?\DateTimeInterface $dateModification null;
  23.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  24.     private ?\DateTimeInterface $dateSuppression null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getUser(): ?User
  30.     {
  31.         return $this->user;
  32.     }
  33.     public function setUser(?User $user): self
  34.     {
  35.         $this->user $user;
  36.         return $this;
  37.     }
  38.     public function getSessionId(): ?int
  39.     {
  40.         return $this->session_id;
  41.     }
  42.     public function setSessionId(string $session_id): self
  43.     {
  44.         $this->session_id $session_id;
  45.         return $this;
  46.     }
  47.     public function getTime(): ?string
  48.     {
  49.         return $this->time;
  50.     }
  51.     public function setTime(string $time): self
  52.     {
  53.         $this->time $time;
  54.         return $this;
  55.     }
  56.     public function getDateCreation(): ?\DateTimeInterface
  57.     {
  58.         return $this->dateCreation;
  59.     }
  60.     public function setDateCreation(\DateTimeInterface $dateCreation): self
  61.     {
  62.         $this->dateCreation $dateCreation;
  63.         return $this;
  64.     }
  65.     public function getDateModification(): ?\DateTimeInterface
  66.     {
  67.         return $this->dateModification;
  68.     }
  69.     public function setDateModification(\DateTimeInterface $dateModification): self
  70.     {
  71.         $this->dateModification $dateModification;
  72.         return $this;
  73.     }
  74.     public function getDateSuppression(): ?\DateTimeInterface
  75.     {
  76.         return $this->dateSuppression;
  77.     }
  78.     public function setDateSuppression(\DateTimeInterface $dateSuppression): self
  79.     {
  80.         $this->dateSuppression $dateSuppression;
  81.         return $this;
  82.     }
  83. }