woocommerce/includes/interfaces/class-wc-webhooks-data-stor...

33 lines
787 B
PHP
Raw Normal View History

2017-08-17 03:08:32 +00:00
<?php
/**
* Webhook Data Store Interface
*
* @version 3.2.0
2020-08-05 16:36:24 +00:00
* @package WooCommerce\Interface
2017-08-17 03:08:32 +00:00
*/
/**
* WooCommerce Webhook data store interface.
*/
interface WC_Webhook_Data_Store_Interface {
/**
* Get API version number.
*
* @since 3.2.0
* @param string $api_version REST API version.
* @return int
*/
public function get_api_version_number( $api_version );
/**
* Get all webhooks IDs.
*
2017-08-17 14:07:30 +00:00
* @since 3.2.0
* @throws InvalidArgumentException If a $status value is passed in that is not in the known wc_get_webhook_statuses() keys.
2019-02-18 19:48:01 +00:00
* @param string $status Optional - status to filter results by. Must be a key in return value of @see wc_get_webhook_statuses(). @since 3.6.0.
* @return int[]
*/
public function get_webhooks_ids( $status = '' );
2017-08-17 03:08:32 +00:00
}