ModalWindowsFactory
extends BaseComponentFactory
in package
Table of Contents
Properties
- $appContext : AppContext
- $control : BaseComponent|null
- $debugMode : bool
- $eventDispatcher : EventDispatcher
- $modalRegistry : ModalRegistry
- $modalWindowFactory : ModalWindowFactory
Methods
- __construct() : mixed
- create() : ModalWindows
- getAppContext() : AppContext
- getControl() : BaseComponent
- initControl() : void
- initializeAllContexts() : void
- setAppContext() : $this
- setDebugMode() : void
- 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
$debugMode
private
bool
$debugMode
= false
$eventDispatcher read-only
private
EventDispatcher
$eventDispatcher
$modalRegistry read-only
private
ModalRegistry
$modalRegistry
$modalWindowFactory read-only
private
ModalWindowFactory
$modalWindowFactory
Methods
__construct()
public
__construct(ModalRegistry $modalRegistry, ModalWindowFactory $modalWindowFactory, EventDispatcher $eventDispatcher) : mixed
Parameters
- $modalRegistry : ModalRegistry
- $modalWindowFactory : ModalWindowFactory
- $eventDispatcher : EventDispatcher
create()
public
create() : ModalWindows
Return values
ModalWindowsgetAppContext()
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
$thissetDebugMode()
public
setDebugMode(bool $debugMode) : void
Parameters
- $debugMode : bool
initialized()
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