ClassDiscriminatorMapping
in package
Tags
Table of Contents
Properties
- $typeProperty : mixed
- $typesMapping : mixed
Methods
- __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> = []
getClassForType()
public
getClassForType(string $type) : string|null
Parameters
- $type : string
Return values
string|nullgetMappedObjectType()
public
getMappedObjectType(object|string $object) : string|null
Parameters
- $object : object|string
Return values
string|nullgetTypeProperty()
public
getTypeProperty() : string
Return values
stringgetTypesMapping()
public
getTypesMapping() : array<string|int, mixed>