class-wc-customer-download-log-data-store-interface.php 700 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Customer Download Log Data Store Interface
  4. *
  5. * @version 3.3.0
  6. * @package WooCommerce/Interface
  7. */
  8. if ( ! defined( 'ABSPATH' ) ) {
  9. exit;
  10. }
  11. /**
  12. * WC Customer Download Log Data Store Interface.
  13. *
  14. * @version 3.3.0
  15. */
  16. interface WC_Customer_Download_Log_Data_Store_Interface {
  17. /**
  18. * Get array of download log ids by specified args.
  19. *
  20. * @param array $args Arguments.
  21. * @return array of WC_Customer_Download_Log
  22. */
  23. public function get_download_logs( $args = array() );
  24. /**
  25. * Get logs for a specific download permission.
  26. *
  27. * @param int $permission_id Permission ID.
  28. * @return array
  29. */
  30. public function get_download_logs_for_permission( $permission_id );
  31. }