Documentation

ExpandClasses
in package
Uses MergeTrait

Iterate over the chain of anchestors of a schema and: - merge anchestor annotations/methods/properties into the schema if the anchestor doesn't have a schema itself - inherit from the anchestor if it has a schema (allOf) and stop.

Table of Contents

__invoke()  : mixed
inheritFrom()  : void
mergeAnnotations()  : void
mergeMethods()  : void
mergeProperties()  : void

Methods

mergeAnnotations()

protected mergeAnnotations(Schema $schema, array<string|int, mixed> $from, array<string|int, mixed> &$existing) : void
Parameters
$schema : Schema
$from : array<string|int, mixed>
$existing : array<string|int, mixed>
Return values
void

mergeMethods()

protected mergeMethods(Schema $schema, array<string|int, mixed> $from, array<string|int, mixed> &$existing) : void
Parameters
$schema : Schema
$from : array<string|int, mixed>
$existing : array<string|int, mixed>
Return values
void

mergeProperties()

protected mergeProperties(Schema $schema, array<string|int, mixed> $from, array<string|int, mixed> &$existing) : void
Parameters
$schema : Schema
$from : array<string|int, mixed>
$existing : array<string|int, mixed>
Return values
void

Search results