WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

Automattic\WooCommerce\Blocks\StoreApi\Routes

Checkout::__construct() public WC 1.0

Constructor accepts two types of schema; one for the item being returned, and one for the cart as a whole. These may be the same depending on the route.

{} Это метод класса: Checkout{}

Хуков нет.

Возвращает

null. Ничего.

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

$Checkout = new Checkout();
$Checkout->__construct( $cart_schema, $item_schema, $cart_controller, $order_controller );
$cart_schema(CartSchema) (обязательный)
Schema class for the cart.
$item_schema(AbstractSchema)
Schema class for this route's items if it differs from the cart schema.
$cart_controller(CartController) (обязательный)
Cart controller class.
$order_controller(OrderController) (обязательный)
Order controller class.

Код Checkout::__construct() WC 5.4.1

<?php
public function __construct( CartSchema $cart_schema, AbstractSchema $item_schema = null, CartController $cart_controller, OrderController $order_controller ) {
	$this->schema           = is_null( $item_schema ) ? $cart_schema : $item_schema;
	$this->cart_schema      = $cart_schema;
	$this->cart_controller  = $cart_controller;
	$this->order_controller = $order_controller;
}