PollPlaceFactory
extends BaseComponentFactory
in package
Table of Contents
Properties
- $appContext : AppContext
- $control : BaseComponent|null
- $PollManager : PollManager
- $PollPlaceManager : PollPlaceManager
Methods
- __construct() : mixed
- create() : PollPlace
- 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
$PollManager read-only
private
PollManager
$PollManager
$PollPlaceManager read-only
private
PollPlaceManager
$PollPlaceManager
Methods
__construct()
public
__construct(PollPlaceManager $PollPlaceManager, PollManager $PollManager) : mixed
Parameters
- $PollPlaceManager : PollPlaceManager
- $PollManager : PollManager
create()
public
create() : PollPlace
Return values
PollPlacegetAppContext()
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