Tags
2 weeks ago
Datapoint.php
2 weeks ago
Disconnected_Modules.php
2 weeks ago
Executable_Datapoint.php
10 months ago
Module.php
2 weeks ago
Module_Registry.php
5 years ago
Module_Settings.php
5 years ago
Module_Sharing_Settings.php
2 weeks ago
Module_With_Activation.php
4 years ago
Module_With_Assets.php
4 years ago
Module_With_Assets_Trait.php
1 year ago
Module_With_Data_Available_State.php
3 years ago
Module_With_Data_Available_State_Trait.php
2 years ago
Module_With_Deactivation.php
4 years ago
Module_With_Debug_Fields.php
2 weeks ago
Module_With_Inline_Data.php
2 weeks ago
Module_With_Owner.php
3 months ago
Module_With_Owner_Trait.php
4 years ago
Module_With_Persistent_Registration.php
1 year ago
Module_With_Scopes.php
5 years ago
Module_With_Scopes_Trait.php
1 year ago
Module_With_Service_Entity.php
2 weeks ago
Module_With_Settings.php
5 years ago
Module_With_Settings_Trait.php
2 weeks ago
Module_With_Tag.php
2 months ago
Module_With_Tag_Trait.php
1 year ago
Modules.php
2 weeks ago
Permission_Aware_Datapoint.php
2 weeks ago
REST_Dashboard_Sharing_Controller.php
1 year ago
REST_Modules_Controller.php
2 weeks ago
Shareable_Datapoint.php
2 weeks ago
Executable_Datapoint.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Class Google\Site_Kit\Core\Modules\Executable_Datapoint |
| 4 | * |
| 5 | * @package Google\Site_Kit\Core\Modules |
| 6 | * @copyright 2025 Google LLC |
| 7 | * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 |
| 8 | * @link https://sitekit.withgoogle.com |
| 9 | */ |
| 10 | |
| 11 | namespace Google\Site_Kit\Core\Modules; |
| 12 | |
| 13 | use Google\Site_Kit\Core\REST_API\Data_Request; |
| 14 | |
| 15 | /** |
| 16 | * Interface for a datapoint that can be executed. |
| 17 | * |
| 18 | * @since 1.160.0 |
| 19 | */ |
| 20 | interface Executable_Datapoint { |
| 21 | |
| 22 | /** |
| 23 | * Creates a request object. |
| 24 | * |
| 25 | * @since 1.160.0 |
| 26 | * |
| 27 | * @param Data_Request $data Data request object. |
| 28 | */ |
| 29 | public function create_request( Data_Request $data ); |
| 30 | |
| 31 | /** |
| 32 | * Parses a response. |
| 33 | * |
| 34 | * @since 1.160.0 |
| 35 | * |
| 36 | * @param mixed $response Request response. |
| 37 | * @param Data_Request $data Data request object. |
| 38 | */ |
| 39 | public function parse_response( $response, Data_Request $data ); |
| 40 | } |
| 41 |