Documentation

DiscriminatorMapping
in package
implements OpenApiAttributeInterface

The attribute may be used in {@see Schema::$discriminatorMapping} to define an optional mapping definition in scenarios involving composition / inheritance where the value of the discriminator field does not match the schema name or implicit mapping is not possible.

Use Schema::$discriminatorProperty to define a discriminator property.

Interfaces, Classes, Traits and Enums

OpenApiAttributeInterface

Table of Contents

$schema  : string|null
$value  : string
__construct()  : mixed

Properties

Methods

__construct()

public __construct([string $value = "" ][, class-string|null $schema = null ]) : mixed
Parameters
$value : string = ""

The property value that will be mapped to a Schema.

$schema : class-string|null = null

The schema that is being mapped to a property value.

Return values
mixed

Search results