Documentation

IModelFactory

Defines a factory for creating model instances using optional service providers.

Table of Contents

getServiceConfigMap() Retrieve the service configuration data as a map of property name => IPropertyConfig array
getServiceConfig() Retrieve a specific config instance by property name. IPropertyConfig
create() Create a model and initialize any service provider backed properties IModel

Methods

getServiceConfigMap()

Retrieve the service configuration data as a map of property name => IPropertyConfig

public getServiceConfigMap( ) : array
Return values
array

config data.

getServiceConfig()

Retrieve a specific config instance by property name.

public getServiceConfig( $propertyName : string ) : IPropertyConfig
Parameters
$propertyName : string

Property name

Tags
throws
InvalidArgumentException

if the config is not listed by the specified property name.

Return values
IPropertyConfig

Service provider config

create()

Create a model and initialize any service provider backed properties

public create( $data : array [, $extraConfig : array = [] ] ) : IModel
Parameters
$data : array
$extraConfig : array = []

Extra configuration data for creating other properties. If this is included, the cached property set is not used.

Return values
IModel

Search results