44 lines
865 B
PHP
44 lines
865 B
PHP
|
<?php
|
||
|
namespace Misuzu\Users;
|
||
|
|
||
|
use DateTimeImmutable;
|
||
|
use Misuzu\Database\Database;
|
||
|
|
||
|
final class Users {
|
||
|
private Database $db;
|
||
|
|
||
|
private array $cached = [];
|
||
|
|
||
|
public function __construct(Database $db) {
|
||
|
$this->db = $db;
|
||
|
}
|
||
|
|
||
|
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 {
|
||
|
//
|
||
|
}
|
||
|
}
|