Automattic\WooCommerce\StoreApi\Schemas\V1

ProductReviewSchema::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

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

Код ProductReviewSchema::__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 );
}