• File: token-user-meta-repository-interface.php
  • Full Path: /home/satp2352/public_html/multitasjayautama.com/01/src/ai-authorization/infrastructure/token-user-meta-repository-interface.php
  • Date Modified: 05/22/2026 6:32 AM
  • 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;
}