Classes
ModelRegistry
in package
Uses
LoggerAwareTrait
Table of Contents
- $alternativeNames : mixed
- $api : mixed
- $modelDescribers : mixed
- $models : mixed
- $names : mixed
- $registeredModelNames : mixed
- $unregistered : mixed
- register() : string
- generateModelName() : string
- getCollectionKeyTypes() : array<string|int, mixed>
- getCollectionValueType() : Type|null
- getCollectionValueTypes() : array<string|int, mixed>
- getTypeShortName() : string
- modelToArray() : array<string|int, mixed>
- typeToString() : string
Properties
$alternativeNames
private
mixed
$alternativeNames
= []
$api
private
mixed
$api
$modelDescribers
private
mixed
$modelDescribers
= []
$models
private
mixed
$models
= []
$names
private
mixed
$names
= []
$registeredModelNames
private
mixed
$registeredModelNames
= []
$unregistered
private
mixed
$unregistered
= []
Methods
register()
public
register(Model $model) : string
Parameters
- $model : Model
Return values
string —generateModelName()
private
generateModelName(Model $model) : string
Parameters
- $model : Model
Return values
string —getCollectionKeyTypes()
private
getCollectionKeyTypes(Type $type) : array<string|int, mixed>
Parameters
- $type : Type
Return values
array<string|int, mixed> —getCollectionValueType()
private
getCollectionValueType(Type $type) : Type|null
Parameters
- $type : Type
Return values
Type|null —getCollectionValueTypes()
private
getCollectionValueTypes(Type $type) : array<string|int, mixed>
Parameters
- $type : Type
Return values
array<string|int, mixed> —getTypeShortName()
private
getTypeShortName(Type $type) : string
Parameters
- $type : Type
Return values
string —modelToArray()
private
modelToArray(Model $model) : array<string|int, mixed>
Parameters
- $model : Model
Return values
array<string|int, mixed> —typeToString()
private
typeToString(Type $type) : string
Parameters
- $type : Type