PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
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

40 lines 1011 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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