src/Entity/LoginAttempt.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LoginAttemptRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassLoginAttemptRepository::class)]
  7. #[ORM\Table(name'tb_login_attempts')]
  8. class LoginAttempt
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?string $id null;
  14.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  15.     private ?\DateTimeInterface $createdAt null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?bool $activated null;
  18.     #[ORM\ManyToOne(inversedBy'loginAttempts')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?AppAccount $appAccount null;
  21.     public function getId(): ?string
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getCreatedAt(): ?\DateTimeInterface
  26.     {
  27.         return $this->createdAt;
  28.     }
  29.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  30.     {
  31.         $this->createdAt $createdAt;
  32.         return $this;
  33.     }
  34.     public function isActivated(): ?bool
  35.     {
  36.         return $this->activated;
  37.     }
  38.     public function setActivated(?bool $activated): static
  39.     {
  40.         $this->activated $activated;
  41.         return $this;
  42.     }
  43.     public function getAppAccount(): ?AppAccount
  44.     {
  45.         return $this->appAccount;
  46.     }
  47.     public function setAppAccount(?AppAccount $appAccount): static
  48.     {
  49.         $this->appAccount $appAccount;
  50.         return $this;
  51.     }
  52. }