Automattic\WooCommerce\Internal\ProductFeed\Mapping
UcpProductMapper::__construct
Constructor.
Method of the class: UcpProductMapper{}
No Hooks.
Returns
null. Nothing (null).
Usage
$UcpProductMapper = new UcpProductMapper(); $UcpProductMapper->__construct( $currency, ?ProductSchema $schema );
- $currency(string)
- ISO 4217 currency code;
''uses the store currency.
Default:'' - ?ProductSchema $schema
- .
Default:null
UcpProductMapper::__construct() UcpProductMapper:: construct code WC 11.3.0
public function __construct( string $currency = '', ?ProductSchema $schema = null ) {
$this->currency = $currency;
$this->schema = $schema;
}