Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives

WooPayments::__construct()publicWC 1.0

Constructor.

Method of the class: WooPayments{}

No Hooks.

Return

null. Nothing (null).

Usage

$WooPayments = new WooPayments();
$WooPayments->__construct( $suggestion_id );
$suggestion_id(string) (required)
The suggestion ID.

WooPayments::__construct() code WC 9.6.1

public function __construct( string $suggestion_id ) {
	parent::__construct( $suggestion_id );

	$this->cache_transient_name              = self::PREFIX . $suggestion_id . '_cache';
	$this->store_has_orders_transient_name   = self::PREFIX . $suggestion_id . '_store_has_orders';
	$this->store_had_woopayments_option_name = self::PREFIX . $suggestion_id . '_store_had_woopayments';
}