PaymentItemsFactory
extends BaseComponentFactory
in package
FinalYes
Factory for {@see PaymentItems}. The `AppContext` is injected by the decorator (`setAppContext()` in the decorators config), so the constructor does not call the parent constructor.
Table of Contents
Properties
- $appContext : AppContext
- $control : BaseComponent|null
- $paymentItemManager : PaymentItemManager
- $tariffManager : TariffManager
Methods
- __construct() : mixed
- create() : PaymentItems
- 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
$paymentItemManager read-only
private
PaymentItemManager
$paymentItemManager
$tariffManager read-only
private
TariffManager
$tariffManager
Methods
__construct()
public
__construct(PaymentItemManager $paymentItemManager, TariffManager $tariffManager) : mixed
Parameters
- $paymentItemManager : PaymentItemManager
- $tariffManager : TariffManager
create()
public
create() : PaymentItems
Return values
PaymentItemsgetAppContext()
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