19 lines
449 B
PHP
19 lines
449 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MintyPHP\Repository\Auth;
|
||
|
|
|
||
|
|
interface EmailVerificationRepositoryInterface
|
||
|
|
{
|
||
|
|
public function create(int $userId, string $codeHash, string $expiresAt): ?int;
|
||
|
|
|
||
|
|
public function invalidateForUser(int $userId): bool;
|
||
|
|
|
||
|
|
public function findActiveByUserId(int $userId): ?array;
|
||
|
|
|
||
|
|
public function findById(int $id): ?array;
|
||
|
|
|
||
|
|
public function incrementAttempts(int $id): bool;
|
||
|
|
|
||
|
|
public function markUsed(int $id): bool;
|
||
|
|
}
|