Documentation

ClassDiscriminatorMapping
in package

Tags
author

Samuel Roze samuel.roze@gmail.com

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

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|null

getMappedObjectType()

public getMappedObjectType(object|string $object) : string|null
Parameters
$object : object|string
Return values
string|null

getTypesMapping()

public getTypesMapping() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results