Automattic\WooCommerce\Admin\Marketing

Price::__constructpublicWC 1.0

Price constructor.

Method of the class: Price{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Price = new Price();
$Price->__construct( $value, $currency );
$value(string) (required)
The value of the price.
$currency(string) (required)
The currency of the price.

Price::__construct() code WC 10.6.2

public function __construct( string $value, string $currency ) {
	$this->value    = $value;
	$this->currency = $currency;
}