diff --git a/src/Entity/User.php b/src/Entity/User.php index 2705d91..84d5f54 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -101,6 +101,12 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $signature = null; + #[ORM\Column] + private ?bool $active = null; + + #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] + private ?\DateTimeInterface $lastLogin = null; + public function __construct() { $this->userCases = new ArrayCollection(); @@ -454,4 +460,28 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface return $this; } + + public function isActive(): ?bool + { + return $this->active; + } + + public function setActive(bool $active): static + { + $this->active = $active; + + return $this; + } + + public function getLastLogin(): ?\DateTimeInterface + { + return $this->lastLogin; + } + + public function setLastLogin(?\DateTimeInterface $lastLogin): static + { + $this->lastLogin = $lastLogin; + + return $this; + } }