2022-09-13 13:14:49 +00:00
|
|
|
<?php
|
|
|
|
namespace Misuzu\Users;
|
|
|
|
|
|
|
|
use DateTimeImmutable;
|
2023-01-01 19:06:01 +00:00
|
|
|
use Index\Data\IDbConnection;
|
2022-09-13 13:14:49 +00:00
|
|
|
|
|
|
|
final class Users {
|
2023-01-01 19:06:01 +00:00
|
|
|
private IDbConnection $dbConn;
|
2022-09-13 13:14:49 +00:00
|
|
|
|
|
|
|
private array $cached = [];
|
|
|
|
|
2023-01-01 19:06:01 +00:00
|
|
|
public function __construct(IDbConnection $dbConn) {
|
|
|
|
$this->dbConn = $dbConn;
|
2022-09-13 13:14:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getById(string $userId): User {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getByName(string $userName): User {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getByMailAddress(string $mailAddress): User {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getByNameOrMailAddress(string $userNameOrMailAddress): User {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getByIdOrName(string $userIdOrName): User {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getByBirthDate(DateTimeImmutable $dateTime): array {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getByAll(bool $includeDeleted = false, ?Pagination $pagination = null): array {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|