MergeTrait
Steps: 1. Determine direct parent / interfaces / traits 2. With each: - traverse up inheritance tree - inherit from first with schema; all other with scheme can be ignored - merge from all without schema => update all $ref that might reference a property merged.
Table of Contents
- inheritFrom() : void
- mergeAnnotations() : void
- mergeMethods() : void
- mergeProperties() : void
Methods
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>