PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 27.8
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v27.8
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 / grants / grant-interface.php

grant-interface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 27.8, at src/myyoast-client/application/grants/grant-interface.php

29 lines 806 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\Grants;
5
6 /**
7 * Interface for OAuth grant types.
8 *
9 * Each implementation provides the grant-specific parameters for a token
10 * endpoint request. The shared logic (client assertion, error handling)
11 * is handled by OAuth_Grant_Handler.
12 */
13 interface Grant_Interface {
14
15 /**
16 * Returns the OAuth grant type identifier (e.g. "authorization_code").
17 *
18 * @return string
19 */
20 public function get_grant_type(): string;
21
22 /**
23 * Returns the grant-specific parameters to merge into the token request body.
24 *
25 * @return array<string, string> The parameters (e.g. code, redirect_uri, refresh_token).
26 */
27 public function get_grant_params(): array;
28 }
29