Automattic\WooCommerce\StoreApi\Schemas\V1

ShopperListSchema::__constructpublicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

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

Код ShopperListSchema::__construct() WC 11.0.1

public function __construct( ExtendSchema $extend, SchemaController $controller ) {
	parent::__construct( $extend, $controller );
	$schema = $this->controller->get( ShopperListItemSchema::IDENTIFIER );
	if ( ! $schema instanceof ShopperListItemSchema ) {
		throw new \RuntimeException( 'ShopperListItemSchema is not registered in SchemaController.' );
	}
	$this->item_schema = $schema;
}