Schema
class Schema implements Schemable
Methods
__construct(Type $schema, string $name = 'schema_definition', bool $strict = false)
Create a new output schema.
string
name()
Get the name of the schema.
array
toArray()
Get the array representation of the schema.
array
toSchema()
Get the array representation of the schema.
Details
at line 15
__construct(Type $schema, string $name = 'schema_definition', bool $strict = false)
Create a new output schema.
at line 25
string
name()
Get the name of the schema.
at line 33
Schema
withName(string $name)
Create a new output schema with the given name.
at line 47
array
toArray()
Get the array representation of the schema.
at line 57
array
toSchema()
Get the array representation of the schema.