Yoast\WP\SEO\AI_Authorization\Infrastructure
Code_Verifier_User_Meta_Repository_Interface{}
Interface for the Code Verifier User Meta Repository.
This interface defines methods for managing code verifiers associated with users.
Хуков нет.
Использование
$Code_Verifier_User_Meta_Repository_Interface = new Code_Verifier_User_Meta_Repository_Interface(); // use class methods
Методы
- public delete_code_verifier( int $user_id )
- public get_code_verifier( int $user_id )
- public store_code_verifier( int $user_id, string $code, int $created_at )
- ERROR: no method name found on line ``
- ERROR: no method name found on line `/**`
- ERROR: no method name found on line `/**`
Код Code_Verifier_User_Meta_Repository_Interface{} Code Verifier User Meta Repository Interface{} Yoast 28.3
interface Code_Verifier_User_Meta_Repository_Interface {
/**
* Get the verification code for a user.
*
* @param int $user_id The user ID.
*
* @throws RuntimeException If the code verifier is not found or has expired.
* @return Code_Verifier The verification code or null if not found.
*/
public function get_code_verifier( int $user_id ): ?Code_Verifier;
/**
* Store the verification code for a user.
*
* @param int $user_id The user ID.
* @param string $code The code verifier.
* @param int $created_at The time the code was created.
*
* @return void
*/
public function store_code_verifier( int $user_id, string $code, int $created_at ): void;
/**
* Delete the verification code for a user.
*
* @param int $user_id The user ID.
*
* @return void
*/
public function delete_code_verifier( int $user_id ): void;
}