Yoast\WP\SEO\AI_Free_Sparks\Application

Free_Sparks_Handler_Interface{}interfaceYoast 1.0

Interface Consent_Handler_Interface

This interface defines the methods for handling user consent.

Хуков нет.

Использование

$Free_Sparks_Handler_Interface = new Free_Sparks_Handler_Interface();
// use class methods

Методы

  1. public get( string $format = 'Y-m-d H:i:s' )
  2. public start( ?int $timestamp = null )
  3. ERROR: no method name found on line `/**`
  4. ERROR: no method name found on line ``

Код Free_Sparks_Handler_Interface{} Yoast 27.7

interface Free_Sparks_Handler_Interface {

	/**
	 * Retrieves the timestamp.
	 *
	 * @param string $format The format in which to return the timestamp. Defaults to 'Y-m-d H:i:s'.
	 *
	 * @return ?string The timestamp when the user started using free sparks, or null if not set.
	 */
	public function get( string $format = 'Y-m-d H:i:s' ): ?string;

	/**
	 * Registers the starting of the free sparks.
	 *
	 * @param ?int $timestamp The timestamp when the user started using free sparks. If null, the current time will be
	 *                        used.
	 *
	 * @return bool True if the operation was successful, false otherwise.
	 */
	public function start( ?int $timestamp = null ): bool;
}