Automattic\WooCommerce\Admin\Marketing
Price::__construct
Price constructor.
Метод класса: Price{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Price = new Price(); $Price->__construct( $value, $currency );
- $value(строка) (обязательный)
- The value of the price.
- $currency(строка) (обязательный)
- The currency of the price.
Код Price::__construct() Price:: construct WC 11.1.2
public function __construct( string $value, string $currency ) {
$this->value = $value;
$this->currency = $currency;
}