?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/demo2/wp-content/plugins/wordpress-seo/src/ai-authorization/infrastructure/



?? Go up: /home/webdevt/www/demo2/wp-content/plugins/wordpress-seo/src/ai-authorization

?? Viewing: token-user-meta-repository-interface.php

<?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;
}


??

??