Automattic\WooCommerce\StoreApi\Routes\V1
Order::__construct
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() Order:: construct WC 10.5.0
public function __construct( SchemaController $schema_controller, AbstractSchema $schema ) {
parent::__construct( $schema_controller, $schema );
$this->order_controller = new OrderController();
}