Flow PHP

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
self

normalize()

public normalize() : array{derived: array, derived_from: string}
Return values
array{derived: array, derived_from: string}
On this page

Search results