Automattic\WooCommerce\StoreApi\Schemas\V1

ProductCategorySchema::__construct()publicWC 1.0

Constructor.

Метод класса: ProductCategorySchema{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ProductCategorySchema = new ProductCategorySchema();
$ProductCategorySchema->__construct( $extend, $controller );
$extend(ExtendSchema) (обязательный)
Rest Extending instance.
$controller(SchemaController) (обязательный)
Schema Controller instance.

Код ProductCategorySchema::__construct() WC 8.7.0

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