← All changes
|
src/Controllers/Hooks/Order/interface-order-controller.php
+37
-4
3.0.2
→
4.3.0
View file →
| @@ -23,21 +23,54 @@ | ||
| 23 | 23 | * @param array $query_vars Query vars from WC_Order_Query. |
| 24 | 24 | * @param WC_Order_Data_Store_CPT $order_data_store WC_Order_Data_Store instance. |
| 25 | 25 | * @return array modified $query |
| 26 | 26 | */ |
| 27 | - public function handle_custom_query_vars( array $wp_query_args, array $query_vars, $order_data_store ): array; | |
| 27 | + public function handle_custom_query_vars( $wp_query_args, $query_vars, $order_data_store ); | |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Trigger the sync of the order status with SeQura |
| 31 | + * | |
| 32 | + * @param int $order_id Order ID. | |
| 33 | + * @param string $old_status Old status. | |
| 34 | + * @param string $new_status New status. | |
| 35 | + * @param WC_Order $order Order object. | |
| 36 | + * | |
| 37 | + * @return void | |
| 31 | 38 | */ |
| 32 | - public function handle_order_status_changed( int $order_id, string $old_status, string $new_status, WC_Order $order ): void; | |
| 39 | + public function handle_order_status_changed( $order_id, $old_status, $new_status, $order ); | |
| 33 | 40 | |
| 34 | 41 | /** |
| 35 | 42 | * Display notices related to an order |
| 43 | + * | |
| 44 | + * @return void | |
| 36 | 45 | */ |
| 37 | - public function display_notices(): void; | |
| 46 | + public function display_notices(); | |
| 38 | 47 | |
| 39 | 48 | /** |
| 40 | 49 | * Show a link to the seQura back office in the order details page |
| 50 | + * | |
| 51 | + * @param WC_Order $order Order object. | |
| 52 | + * @return void | |
| 41 | 53 | */ |
| 42 | - public function show_link_to_sequra_back_office( WC_Order $order ): void; | |
| 54 | + public function show_link_to_sequra_back_office( $order ); | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * Cleanup orders | |
| 58 | + * | |
| 59 | + * @return void | |
| 60 | + */ | |
| 61 | + public function cleanup_orders(); | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * Respond to the sequra_order_migration_add_indexes hook | |
| 65 | + * | |
| 66 | + * @param string $hook Hook name that triggered the action. | |
| 67 | + */ | |
| 68 | + public function migrate_orders_to_use_indexes( $hook ); | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * Create the Cart Info object for the current session if it doesn't exist. | |
| 72 | + * | |
| 73 | + * @return void | |
| 74 | + */ | |
| 75 | + public function ensure_cart_info_exists(); | |
| 43 | 76 | } |