Skip to content

Commit

Permalink
Address deprecation warnings
Browse files Browse the repository at this point in the history
Creation of dynamic property.
  • Loading branch information
mntzrr committed Feb 6, 2025
1 parent 595e93a commit 246b259
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/billmate-order-management-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,27 @@
* Main class for the plugin.
*/
class Billmate_Order_Management_For_WooCommerce {
/**
* API instance.
*
* @var BOM_API
*/
public $api;

/**
* Logger instance.
*
* @var BOM_Logger
*/
public $logger;

/**
* Order management instance.
*
* @var BOM_Order_Management
*/
public $order_management;

/**
* The reference the *Singleton* instance of this class.
*
Expand Down Expand Up @@ -130,7 +151,6 @@ public function include_files() {
include_once BILLMATE_ORDER_MANAGEMENT_PATH . '/classes/requests/helpers/class-bom-refund-data-articles-helper.php';
include_once BILLMATE_ORDER_MANAGEMENT_PATH . '/classes/requests/helpers/class-bom-refund-data-payment-data-helper.php';
include_once BILLMATE_ORDER_MANAGEMENT_PATH . '/classes/requests/helpers/class-bom-refund-data-cart-helper.php';

}

/**
Expand Down Expand Up @@ -199,7 +219,6 @@ public function plugin_action_links( $links ) {
);
return array_merge( $plugin_links, $links );
}

}
Billmate_Order_Management_For_WooCommerce::get_instance();

Expand Down
35 changes: 35 additions & 0 deletions src/classes/class-bom-admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,41 @@ public static function get_instance() {
return self::$instance;
}

/**
* Whether the plugin is enabled.
*
* @var string
*/
private $enabled;

/**
* Whether auto capture is enabled.
*
* @var string
*/
private $auto_capture;

/**
* Whether auto cancel is enabled.
*
* @var string
*/
private $auto_cancel;

/**
* Old Billmate auto capture setting.
*
* @var string
*/
private $old_billmate_auto_capture;

/**
* Old Billmate auto cancel setting.
*
* @var string
*/
private $old_billmate_auto_cancel;

/**
* BOM_Admin_Notices constructor.
*/
Expand Down

0 comments on commit 246b259

Please sign in to comment.