PropertyTypeIoC implements IPropertyTypeIoC
Tags
Table of Contents
$factories | A map of property type => \Closure for creating instances of IProperty | array |
---|---|---|
$propertyTypes | Property type enum for getting the master list of property types. | IPropertyType |
__construct() | Create a new PropertyFactory | mixed |
getTypeInstance() | IPropertyType | |
getTypes() | array | |
getFactoryFunction() | Closure | |
createProperty() | IProperty |
Properties
$factories
A map of property type => \Closure for creating instances of IProperty
protected
array
$factories
= []
$propertyTypes
Property type enum for getting the master list of property types.
private
IPropertyType
$propertyTypes
Methods
__construct()
Create a new PropertyFactory
public
__construct(
$propertyTypes :
IPropertyType
, $factories :
array
)
: mixed
Parameters
- $propertyTypes : IPropertyType
- $factories : array
Return values
mixedgetTypeInstance()
public
getTypeInstance(
)
: IPropertyType
Return values
IPropertyTypegetTypes()
public
getTypes(
)
: array
Return values
arraygetFactoryFunction()
protected
final getFactoryFunction(
$type :
string
)
: Closure
Parameters
- $type : string
Return values
ClosurecreateProperty()
public
createProperty(
$builder :
IPropertyBuilder
)
: IProperty
Parameters
- $builder : IPropertyBuilder