Automattic\WooCommerce\StoreApi\Routes\V1

Order::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

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

Код Order::__construct() WC 9.5.1

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