DerivedSchema
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- fromArray() : self
-
normalize()
: array{derived: array
, derived_from: string} - refuseDivergence() : void
Methods
__construct()
public
__construct(Schema $derived, string $derivedFrom) : mixed
Parameters
- $derived : Schema
- $derivedFrom : string
-
the file the schema was read from
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
-
the shape of normalize()
Return values
selfnormalize()
public
normalize() : array{derived: array, derived_from: string}
Return values
array{derived: arrayrefuseDivergence()
public
refuseDivergence(string $source, Schema $schema) : void
Parameters
- $source : string
- $schema : Schema