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 6.7.0

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( BillingAddressSchema::IDENTIFIER );
	$this->image_attachment_schema = $this->controller->get( ImageAttachmentSchema::IDENTIFIER );
}