WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ProductCategorySchema::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of ProductCategorySchema::__construct() WC 5.7.1

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