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
__invoke()
public
__invoke(Analysis $analysis) : mixed
Parameters
- $analysis : Analysis
Return values
mixed —inheritFrom()
protected
inheritFrom(Schema $schema, Schema $from, string $refPath, Context|null $context) : void
Parameters
Return values
void —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>