SlotModalFactory
extends BaseComponentFactory
in package
FinalYes
Factory for {@see SlotModal}.
AppContext is injected by the decorator (decorators.neon, setAppContext()), so the
constructor does not take the parent constructor arguments, like
CommentThreadFactory.
Table of Contents
Properties
- $appContext : AppContext
- $control : BaseComponent|null
- $calendarManager : CalendarManager
- $reservationManager : ReservationManager
- $timeSlotManager : TimeSlotManager
Methods
- __construct() : mixed
- create() : SlotModal
- 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
$calendarManager read-only
private
CalendarManager
$calendarManager
$reservationManager read-only
private
ReservationManager
$reservationManager
$timeSlotManager read-only
private
TimeSlotManager
$timeSlotManager
Methods
__construct()
public
__construct(TimeSlotManager $timeSlotManager, ReservationManager $reservationManager, CalendarManager $calendarManager) : mixed
Parameters
- $timeSlotManager : TimeSlotManager
- $reservationManager : ReservationManager
- $calendarManager : CalendarManager
create()
public
create() : SlotModal
Return values
SlotModalgetAppContext()
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