WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ProductSchema::__construct() public WC 1.0

Constructor.

{} It's a method of the class: ProductSchema{}

No Hooks.

Return

null. Nothing.

Usage

$ProductSchema = new ProductSchema();
$ProductSchema->__construct( $extend, $image_attachment_schema );
$extend(ExtendRestApi) (required)
Rest Extending instance.
$image_attachment_schema(ImageAttachmentSchema) (required)
Image attachment schema instance.

Code of ProductSchema::__construct() WC 5.8.0

public function __construct( ExtendRestApi $extend, ImageAttachmentSchema $image_attachment_schema ) {
	$this->image_attachment_schema = $image_attachment_schema;
	parent::__construct( $extend );
}