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
$schemas
Stores schema class instances.
protected
array<string|int, AbstractSchema>
$schemas
= []
$extend
Stores Rest Extending instance
private
ExtendSchema
$extend
Methods
__construct()
Constructor.
public
__construct(ExtendSchema $extend) : mixed
Parameters
- $extend : ExtendSchema
-
Rest Extending instance.
Return values
mixed —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.