Yoast\WP\SEO\AI_Free_Sparks\Application
Free_Sparks_Handler_Interface{}
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
Методы
- public get( string $format = 'Y-m-d H:i:s' )
- public start( ?int $timestamp = null )
- ERROR: no method name found on line `/**`
- ERROR: no method name found on line ``
Код Free_Sparks_Handler_Interface{} 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;
}