Nav apraksta

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

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Webhook Data Store Interface
  4. *
  5. * @version 3.2.0
  6. * @package WooCommerce\Interface
  7. */
  8. /**
  9. * WooCommerce Webhook data store interface.
  10. */
  11. interface WC_Webhook_Data_Store_Interface {
  12. /**
  13. * Get API version number.
  14. *
  15. * @since 3.2.0
  16. * @param string $api_version REST API version.
  17. * @return int
  18. */
  19. public function get_api_version_number( $api_version );
  20. /**
  21. * Get all webhooks IDs.
  22. *
  23. * @since 3.2.0
  24. * @throws InvalidArgumentException If a $status value is passed in that is not in the known wc_get_webhook_statuses() keys.
  25. * @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.
  26. * @return int[]
  27. */
  28. public function get_webhooks_ids( $status = '' );
  29. }