Automattic\WooCommerce\StoreApi\Schemas\V1

ProductCategorySchema::__construct()publicWC 1.0

Constructor.

Method of the class: ProductCategorySchema{}

No Hooks.

Return

null. Nothing (null).

Usage

$ProductCategorySchema = new ProductCategorySchema();
$ProductCategorySchema->__construct( $extend, $controller );
$extend(ExtendSchema) (required)
Rest Extending instance.
$controller(SchemaController) (required)
Schema Controller instance.

ProductCategorySchema::__construct() code WC 8.6.1

public function __construct( ExtendSchema $extend, SchemaController $controller ) {
	parent::__construct( $extend, $controller );
	$this->image_attachment_schema = $this->controller->get( ImageAttachmentSchema::IDENTIFIER );
}