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 { // } }