HEX
Server: nginx/1.24.0
System: Linux 0c1023d6c65e 6.8.0-137-generic #137-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:28:23 UTC 2026 x86_64
User: root (0)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Modules/Executable_Datapoint.php
<?php
/**
 * Class Google\Site_Kit\Core\Modules\Executable_Datapoint
 *
 * @package   Google\Site_Kit\Core\Modules
 * @copyright 2025 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Core\Modules;

use Google\Site_Kit\Core\REST_API\Data_Request;

/**
 * Interface for a datapoint that can be executed.
 *
 * @since 1.160.0
 */
interface Executable_Datapoint {

	/**
	 * Creates a request object.
	 *
	 * @since 1.160.0
	 *
	 * @param Data_Request $data Data request object.
	 */
	public function create_request( Data_Request $data );

	/**
	 * Parses a response.
	 *
	 * @since 1.160.0
	 *
	 * @param mixed        $response Request response.
	 * @param Data_Request $data Data request object.
	 */
	public function parse_response( $response, Data_Request $data );
}