WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

AbstractRoute::__construct() public WC 1.0

Constructor.

{} It's a method of the class: AbstractRoute{}

No Hooks.

Return

null. Nothing.

Usage

$AbstractRoute = new AbstractRoute();
$AbstractRoute->__construct( $schema );
$schema(AbstractSchema) (required)
Schema class for this route.

Code of AbstractRoute::__construct() WC 5.8.0

public function __construct( AbstractSchema $schema ) {
	$this->schema = $schema;
}