WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi

SchemaController::get() public WC 1.0

Get a schema class instance.

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

No Hooks.

Return

AbstractSchema.

Usage

$SchemaController = new SchemaController();
$SchemaController->get( $name );
$name(string) (required)
Name of schema.

Code of SchemaController::get() WC 5.8.0

public function get( $name ) {
	if ( ! isset( $this->schemas[ $name ] ) ) {
		throw new Exception( $name . ' schema does not exist' );
	}
	return $this->schemas[ $name ];
}