ShipperTariffEditFactory
extends BaseComponentFactory
in package
FinalYes
Creates {@see ShipperTariffEdit} instances.
AppContext is injected by a decorator through setAppContext(), so the constructor does
not call the parent constructor.
Table of Contents
Properties
- $appContext : AppContext
- $control : BaseComponent|null
- $adminLanguageManager : LanguageManager
- $currencyManager : CurrencyManager
- $formActionsFactory : FormActionsFactory
- $langNavFactory : LangNavFactory
- $paymentMethodManager : PaymentMethodManager
- $shipperRegionManager : ShipperRegionManager
- $shipperTariffManager : ShipperTariffManager
- $supplyKindManager : SupplyKindManager
- $vatManager : VatManager
Methods
- __construct() : mixed
- create() : ShipperTariffEdit
- 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
$adminLanguageManager read-only
private
LanguageManager
$adminLanguageManager
$currencyManager read-only
private
CurrencyManager
$currencyManager
$formActionsFactory read-only
private
FormActionsFactory
$formActionsFactory
$langNavFactory read-only
private
LangNavFactory
$langNavFactory
$paymentMethodManager read-only
private
PaymentMethodManager
$paymentMethodManager
$shipperRegionManager read-only
private
ShipperRegionManager
$shipperRegionManager
$shipperTariffManager read-only
private
ShipperTariffManager
$shipperTariffManager
$supplyKindManager read-only
private
SupplyKindManager
$supplyKindManager
$vatManager read-only
private
VatManager
$vatManager
Methods
__construct()
public
__construct(ShipperTariffManager $shipperTariffManager, ShipperRegionManager $shipperRegionManager, CurrencyManager $currencyManager, VatManager $vatManager, PaymentMethodManager $paymentMethodManager, LanguageManager $adminLanguageManager, LangNavFactory $langNavFactory, FormActionsFactory $formActionsFactory, SupplyKindManager $supplyKindManager) : mixed
Parameters
- $shipperTariffManager : ShipperTariffManager
- $shipperRegionManager : ShipperRegionManager
- $currencyManager : CurrencyManager
- $vatManager : VatManager
- $paymentMethodManager : PaymentMethodManager
- $adminLanguageManager : LanguageManager
- $langNavFactory : LangNavFactory
- $formActionsFactory : FormActionsFactory
- $supplyKindManager : SupplyKindManager
create()
public
create(int|null $tariffId, int $shipperId) : ShipperTariffEdit
Parameters
- $tariffId : int|null
- $shipperId : int
Return values
ShipperTariffEditgetAppContext()
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