PropertySetFactory implements IPropertySetFactory
Can be used to create IPropertySet instances for a specific type of IModel
Table of Contents
$factory | Property factory instance | IPropertyFactory |
---|---|---|
$createPropertySet | A supplier for creating IPropertySet instances. | Closure |
__construct() | mixed | |
getPropertyFactory() | Retrieve the IPropertyFactory instance | IPropertyFactory |
getCreatePropertySetSupplier() | Retrieve the callback used for creating new IPropertySet instances | Closure |
createPropertySet() | Using the suppliers defined in this object, create an IPropertySet instance. | IPropertySet |
Properties
$factory
Property factory instance
private
IPropertyFactory
$factory
$createPropertySet
A supplier for creating IPropertySet instances.
private
Closure
$createPropertySet
Methods
__construct()
public
__construct(
$factory :
IPropertyFactory
, $createPropertySet :
Closure
)
: mixed
Parameters
- $factory : IPropertyFactory
Property Factory
- $createPropertySet : Closure
A callback for creating IPropertySet instances. f( IPropertyFactory $factory, IPropertyConfig ...$config ) : IPropertySet
Return values
mixedgetPropertyFactory()
Retrieve the IPropertyFactory instance
public
getPropertyFactory(
)
: IPropertyFactory
Return values
IPropertyFactory —factor
getCreatePropertySetSupplier()
Retrieve the callback used for creating new IPropertySet instances
public
getCreatePropertySetSupplier(
)
: Closure
Return values
Closure —f( IPropertyFactory $factory, IPropertyConfig ...$config ) : IPropertySet
createPropertySet()
Using the suppliers defined in this object, create an IPropertySet instance.
public
createPropertySet(
...$config :
IPropertyConfig
)
: IPropertySet
Parameters
- $config : IPropertyConfig
Additional configuration data
Tags
Return values
IPropertySet —property set