class-wc-webhooks-data-store-interface.php 543 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Webhook Data Store Interface
  4. *
  5. * @version 3.2.0
  6. * @package WooCommerce/Interface
  7. */
  8. if ( ! defined( 'ABSPATH' ) ) {
  9. exit;
  10. }
  11. /**
  12. * WooCommerce Webhook data store interface.
  13. */
  14. interface WC_Webhook_Data_Store_Interface {
  15. /**
  16. * Get API version number.
  17. *
  18. * @since 3.2.0
  19. * @param string $api_version REST API version.
  20. * @return int
  21. */
  22. public function get_api_version_number( $api_version );
  23. /**
  24. * Get all webhooks IDs.
  25. *
  26. * @since 3.2.0
  27. * @return int[]
  28. */
  29. public function get_webhooks_ids();
  30. }