wordpress-seo
/
src
/
deprecated
/
src
/
ai-free-sparks
/
application
/
free-sparks-handler-interface.php
free-sparks-handler-interface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at src/deprecated/src/ai-free-sparks/application/free-sparks-handler-interface.php
| 1 | <?php |
| 2 | |
| 3 | namespace Yoast\WP\SEO\AI_Free_Sparks\Application; |
| 4 | |
| 5 | /** |
| 6 | * Interface Consent_Handler_Interface |
| 7 | * |
| 8 | * This interface defines the methods for handling user consent. |
| 9 | * |
| 10 | * @deprecated 28.4 |
| 11 | * @codeCoverageIgnore |
| 12 | */ |
| 13 | interface Free_Sparks_Handler_Interface { |
| 14 | |
| 15 | /** |
| 16 | * Retrieves the timestamp. |
| 17 | * |
| 18 | * @deprecated 28.4 |
| 19 | * @codeCoverageIgnore |
| 20 | * |
| 21 | * @param string $format The format in which to return the timestamp. Defaults to 'Y-m-d H:i:s'. |
| 22 | * |
| 23 | * @return ?string The timestamp when the user started using free sparks, or null if not set. |
| 24 | */ |
| 25 | public function get( string $format = 'Y-m-d H:i:s' ): ?string; |
| 26 | |
| 27 | /** |
| 28 | * Registers the starting of the free sparks. |
| 29 | * |
| 30 | * @deprecated 28.4 |
| 31 | * @codeCoverageIgnore |
| 32 | * |
| 33 | * @param ?int $timestamp The timestamp when the user started using free sparks. If null, the current time will be |
| 34 | * used. |
| 35 | * |
| 36 | * @return bool True if the operation was successful, false otherwise. |
| 37 | */ |
| 38 | public function start( ?int $timestamp = null ): bool; |
| 39 | } |
| 40 |