Automattic\WooCommerce\StoreApi\Routes\V1\Agentic

CheckoutSessions::__constructpublicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

$CheckoutSessions = new CheckoutSessions();
$CheckoutSessions->__construct( $schema_controller, $schema );
$schema_controller(SchemaController) (обязательный)
Schema Controller instance.
$schema(AbstractSchema) (обязательный)
Schema class instance.

Код CheckoutSessions::__construct() WC 10.5.0

public function __construct( $schema_controller, $schema ) {
	parent::__construct( $schema_controller, $schema );
	$this->order_controller = new OrderController();
	$this->cart_controller  = new CartController();
}