<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
class LoginLog
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"comment":"login"})
*/
private $login;
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"comment":"pass"})
*/
private $pass;
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"comment":"sate"})
*/
private $state;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $eventDate;
public function __construct()
{
$now = new \DateTime();
$this->setEventDate($now);
}
public function getId(): ?int
{
return $this->id;
}
public function getPass(): ?string
{
return $this->pass;
}
public function setPass(?string $pass): self
{
$this->pass = $pass;
return $this;
}
public function getLogin(): ?string
{
return $this->login;
}
public function setLogin(?string $login): self
{
$this->login = $login;
return $this;
}
public function getState(): ?string
{
return $this->state;
}
public function setState(?string $state): self
{
$this->state = $state;
return $this;
}
public function getEventDate(): ?\DateTimeInterface
{
return $this->eventDate;
}
public function setEventDate(?\DateTimeInterface $eventDate): self
{
$this->eventDate = $eventDate;
return $this;
}
}