Comus Party 1.0.0
Application web de mini-jeux en ligne
Chargement...
Recherche...
Aucune correspondance
passwordResetToken.class.php
Aller à la documentation de ce fichier.
1<?php
10
11namespace ComusParty\Models;
12
13use DateTime;
14
20{
25 private int $userId;
26
31 private string $token;
32
37 private DateTime $createdAt;
38
45 public function __construct(int $userId, string $token, DateTime $createdAt)
46 {
47 $this->userId = $userId;
48 $this->token = $token;
49 $this->createdAt = $createdAt;
50 }
51
56 public function getUserId(): int
57 {
58 return $this->userId;
59 }
60
65 public function setUserId(int $userId): void
66 {
67 $this->userId = $userId;
68 }
69
74 public function getToken(): string
75 {
76 return $this->token;
77 }
78
83 public function setToken(string $token): void
84 {
85 $this->token = $token;
86 }
87
92 public function getCreatedAt(): DateTime
93 {
94 return $this->createdAt;
95 }
96
101 public function setCreatedAt(DateTime $createdAt): void
102 {
103 $this->createdAt = $createdAt;
104 }
105}
getUserId()
Retourne l'identifiant de l'utilisateur.
getCreatedAt()
Retourne la date de création du token.
getToken()
Retourne le token de réinitialisation de mot de passe.
setUserId(int $userId)
Modifie l'identifiant de l'utilisateur.
setCreatedAt(DateTime $createdAt)
Modifie la date de création du token.
setToken(string $token)
Modifie le token de réinitialisation de mot de passe.
__construct(int $userId, string $token, DateTime $createdAt)
Constructeur de la classe PasswordResetToken.