PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 27.7
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v27.7
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 / myyoast-client / application / ports / token-storage-interface.php

token-storage-interface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 27.7, at src/myyoast-client/application/ports/token-storage-interface.php

39 lines 861 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
4 namespace Yoast\WP\SEO\MyYoast_Client\Application\Ports;
5
6 use Yoast\WP\SEO\MyYoast_Client\Application\Exceptions\Token_Storage_Exception;
7 use Yoast\WP\SEO\MyYoast_Client\Domain\Token_Set;
8
9 /**
10 * Port for site-level token persistence.
11 */
12 interface Token_Storage_Interface {
13
14 /**
15 * Retrieves the stored token set.
16 *
17 * @return Token_Set|null The token set, or null if not stored.
18 */
19 public function get(): ?Token_Set;
20
21 /**
22 * Stores a token set.
23 *
24 * @param Token_Set $token_set The token set to store.
25 *
26 * @return void
27 *
28 * @throws Token_Storage_Exception If storage fails.
29 */
30 public function store( Token_Set $token_set ): void;
31
32 /**
33 * Deletes the stored token set.
34 *
35 * @return void
36 */
37 public function delete(): void;
38 }
39