21 lines
523 B
PHP
21 lines
523 B
PHP
<?php
|
|
|
|
namespace Hpz937\BillReminder\Model;
|
|
|
|
class User {
|
|
public int $id;
|
|
public string $username;
|
|
private string $passwordHash;
|
|
|
|
public function __construct(int $id, string $username, string $passwordHash) {
|
|
$this->id = $id;
|
|
$this->username = $username;
|
|
$this->passwordHash = $passwordHash;
|
|
}
|
|
|
|
// Add methods for password verification, etc.
|
|
public function verifyPassword(string $password): bool {
|
|
return password_verify($password, $this->passwordHash);
|
|
}
|
|
}
|