Automattic\WooCommerce\StoreApi\Schemas\V1

CheckoutSchema::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код CheckoutSchema::__construct() WC 7.5.1

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