70 lines
1.1 KiB
PHP
70 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Meta for WooCommerce.
|
|
*/
|
|
|
|
namespace WooCommerce\Facebook\Framework\Api;
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
/**
|
|
* API Request
|
|
*/
|
|
interface Request {
|
|
/**
|
|
* Returns the method for this request: one of HEAD, GET, PUT, PATCH, POST, DELETE
|
|
*
|
|
* @since 4.0.0
|
|
* @return string the request method, or null to use the API default
|
|
*/
|
|
public function get_method();
|
|
|
|
|
|
/**
|
|
* Returns the request path
|
|
*
|
|
* @since 4.0.0
|
|
* @return string the request path, or '' if none
|
|
*/
|
|
public function get_path();
|
|
|
|
|
|
/**
|
|
* Gets the request query params.
|
|
*
|
|
* @since 5.0.0
|
|
*
|
|
* @return array
|
|
*/
|
|
public function get_params();
|
|
|
|
|
|
/**
|
|
* Gets the request data.
|
|
*
|
|
* @since 5.0.0
|
|
*
|
|
* @return array
|
|
*/
|
|
public function get_data();
|
|
|
|
|
|
/**
|
|
* Returns the string representation of this request
|
|
*
|
|
* @since 2.2.0
|
|
* @return string the request
|
|
*/
|
|
public function to_string();
|
|
|
|
|
|
/**
|
|
* Returns the string representation of this request with any and all
|
|
* sensitive elements masked or removed
|
|
*
|
|
* @since 2.2.0
|
|
* @return string the request, safe for logging/displaying
|
|
*/
|
|
public function to_string_safe();
|
|
}
|