Skip to content

Latest commit

 

History

History
164 lines (63 loc) · 2 KB

ExpandInterfaces.md

File metadata and controls

164 lines (63 loc) · 2 KB

ExpandInterfaces

Look at all (direct) interfaces for a schema and:

  • merge interfaces annotations/methods into the schema if the interface does not have a schema itself
  • inherit from the interface if it has a schema (allOf).
  • Full name: \OpenApi\Processors\ExpandInterfaces

Methods

__invoke

public __invoke(\OpenApi\Analysis $analysis): mixed

Parameters:

Parameter Type Description
$analysis \OpenApi\Analysis

Inherited methods

inheritFrom

protected inheritFrom(\OpenApi\Annotations\Schema $schema, \OpenApi\Annotations\Schema $from, string $refPath, ?\OpenApi\Context $context): void

Parameters:

Parameter Type Description
$schema \OpenApi\Annotations\Schema
$from \OpenApi\Annotations\Schema
$refPath string
$context ?\OpenApi\Context

mergeAnnotations

protected mergeAnnotations(\OpenApi\Annotations\Schema $schema, array $from, array& $existing): void

Parameters:

Parameter Type Description
$schema \OpenApi\Annotations\Schema
$from array
$existing array

mergeProperties

protected mergeProperties(\OpenApi\Annotations\Schema $schema, array $from, array& $existing): void

Parameters:

Parameter Type Description
$schema \OpenApi\Annotations\Schema
$from array
$existing array

mergeMethods

protected mergeMethods(\OpenApi\Annotations\Schema $schema, array $from, array& $existing): void

Parameters:

Parameter Type Description
$schema \OpenApi\Annotations\Schema
$from array
$existing array