WooCommerce Code Reference

SchemaController
in package

SchemaController class.

Table of Contents

$schemas  : array<string|int, AbstractSchema>
Stores schema class instances.
$extend  : ExtendSchema
Stores Rest Extending instance
__construct()  : mixed
Constructor.
get()  : AbstractSchema
Get a schema class instance.

Properties

Methods

get()

Get a schema class instance.

public get(string $name[, int $version = 1 ]) : AbstractSchema
Parameters
$name : string

Name of schema.

$version : int = 1

API Version being requested.

Tags
throws
Exception

If the schema does not exist.

Return values
AbstractSchemaA new instance of the requested schema.