File "token-user-meta-repository-interface.php"
Full Path: /home/digidjwy/public_html/wp-content/plugins/wordpress-seo/src/ai-authorization/infrastructure/token-user-meta-repository-interface.php
File size: 714 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Yoast\WP\SEO\AI_Authorization\Infrastructure;
/**
* Interface Token_Repository_Interface
*/
interface Token_User_Meta_Repository_Interface {
/**
* Get the token for a user.
*
* @param int $user_id The user ID.
*
* @return string The token data.
*/
public function get_token( int $user_id ): string;
/**
* Store the token for a user.
*
* @param int $user_id The user ID.
* @param string $value The token value.
*
* @return void
*/
public function store_token( int $user_id, string $value ): void;
/**
* Delete the token for a user.
*
* @param int $user_id The user ID.
*
* @return void
*/
public function delete_token( int $user_id ): void;
}