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
Table of Contents
- $schema : string|null
- $value : string
- __construct() : mixed
Properties
$schema
public
string|null
$schema
= null
$value
public
string
$value
= ""
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.