src/Entity/Vetoadom/SessionLog.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Vetoadom;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SessionLog
  6.  *
  7.  * @ORM\Table(name="session_log", indexes={@ORM\Index(name="user_id", columns={"user_id"}), @ORM\Index(name="session_id", columns={"session_id"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\Vetoadom\SessionLogRepository")
  9.  */
  10. class SessionLog
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="user_id", type="integer", nullable=true)
  24.      */
  25.     private $userId;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="login", type="string", length=30, nullable=false)
  30.      */
  31.     private $login;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="session_id", type="string", length=26, nullable=false, options={"fixed"=true})
  36.      */
  37.     private $sessionId;
  38.     /**
  39.      * @var \DateTime
  40.      *
  41.      * @ORM\Column(name="date_debut", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  42.      */
  43.     private $dateDebut;
  44.     /**
  45.      * @var \DateTime
  46.      *
  47.      * @ORM\Column(name="date_fin", type="datetime", nullable=false)
  48.      */
  49.     private $dateFin;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getUserId(): ?int
  55.     {
  56.         return $this->userId;
  57.     }
  58.     public function setUserId(int $userId): self
  59.     {
  60.         $this->userId $userId;
  61.         return $this;
  62.     }
  63.     public function getLogin(): ?string
  64.     {
  65.         return $this->login;
  66.     }
  67.     public function setLogin(string $login): self
  68.     {
  69.         $this->login $login;
  70.         return $this;
  71.     }
  72.     public function getSessionId(): ?string
  73.     {
  74.         return $this->sessionId;
  75.     }
  76.     public function setSessionId(string $sessionId): self
  77.     {
  78.         $this->sessionId $sessionId;
  79.         return $this;
  80.     }
  81.     public function getDateDebut(): ?\DateTimeInterface
  82.     {
  83.         return $this->dateDebut;
  84.     }
  85.     public function setDateDebut(\DateTimeInterface $dateDebut): self
  86.     {
  87.         $this->dateDebut $dateDebut;
  88.         return $this;
  89.     }
  90.     public function getDateFin(): ?\DateTimeInterface
  91.     {
  92.         return $this->dateFin;
  93.     }
  94.     public function setDateFin(\DateTimeInterface $dateFin): self
  95.     {
  96.         $this->dateFin $dateFin;
  97.         return $this;
  98.     }
  99. }