ProfileFactory
extends BaseComponentFactory
in package
FinalYes
Table of Contents
Properties
- $appContext : AppContext
- $control : BaseComponent|null
- $assetManager : AssetManager
- $companyManager : CompanyManager
- $ratingFactory : RatingFactory
Methods
- __construct() : mixed
- create() : Profile
- getAppContext() : AppContext
- getControl() : BaseComponent
- initControl() : void
- initializeAllContexts() : void
- setAppContext() : $this
- initialized() : T
- Stores the component as `$control`, initializes it and returns it with its concrete type (so `create(): Cart` does not return the generic `?BaseComponent` property).
Properties
$appContext
protected
AppContext
$appContext
$control
protected
BaseComponent|null
$control
= null
$assetManager read-only
private
AssetManager
$assetManager
$companyManager read-only
private
CompanyManager
$companyManager
$ratingFactory read-only
private
RatingFactory
$ratingFactory
Methods
__construct()
public
__construct(CompanyManager $companyManager, AssetManager $assetManager, RatingFactory $ratingFactory) : mixed
Parameters
- $companyManager : CompanyManager
- $assetManager : AssetManager
- $ratingFactory : RatingFactory
create()
public
create() : Profile
Return values
ProfilegetAppContext()
public
getAppContext() : AppContext
Return values
AppContextgetControl()
public
getControl() : BaseComponent
Return values
BaseComponentinitControl()
public
initControl() : void
initializeAllContexts()
public
initializeAllContexts() : void
setAppContext()
public
setAppContext(AppContext $appContext) : $this
Parameters
- $appContext : AppContext
Return values
$thisinitialized()
Stores the component as `$control`, initializes it and returns it with its concrete type (so `create(): Cart` does not return the generic `?BaseComponent` property).
protected
initialized(T $control) : T
Parameters
- $control : T