ClassDiscriminatorMapping
in package
Tags
Table of Contents
- $typeProperty : mixed
- $typesMapping : mixed
- __construct() : mixed
- getClassForType() : string|null
- getMappedObjectType() : string|null
- getTypeProperty() : string
- getTypesMapping() : array<string|int, mixed>
Properties
$typeProperty
private
mixed
$typeProperty
$typesMapping
private
mixed
$typesMapping
Methods
__construct()
public
__construct(string $typeProperty[, array<string|int, mixed> $typesMapping = [] ]) : mixed
Parameters
- $typeProperty : string
- $typesMapping : array<string|int, mixed> = []
Return values
mixed —getClassForType()
public
getClassForType(string $type) : string|null
Parameters
- $type : string
Return values
string|null —getMappedObjectType()
public
getMappedObjectType(object|string $object) : string|null
Parameters
- $object : object|string
Return values
string|null —getTypeProperty()
public
getTypeProperty() : string
Return values
string —getTypesMapping()
public
getTypesMapping() : array<string|int, mixed>