class ProductRelationshipSettingsManager implements BasicEntityManagerInterface

Class ProductRelationshipSettingsManager is injected as empire_product_relationship_plugin.settings.manager service. ProductRelationshipSettingsManager handles the logic for managed entity.

Constants

RELATIONSHIP_SETTINGS_ALLOW_WITHOUT_MAIN_PRODUCT

Properties

protected ProductRelationshipSettingsRepository $repository
protected Client $cache

Methods

__construct(ProductRelationshipSettingsRepository $repository, Client $cache)

ProductRelationshipSettingsManager constructor.

updateSettings(stdClass $data)

Edit product relationship settings

getSettings()

Find product relationship settings

bool
getRelationshipSettingsForMainProduct()

Get product relationship settings from cache or cache it

setToCache(ProductRelationshipSettings $settings)

Set to product relationship settings to cache

Details

at line 41
__construct(ProductRelationshipSettingsRepository $repository, Client $cache)

ProductRelationshipSettingsManager constructor.

Parameters

ProductRelationshipSettingsRepository $repository
Client $cache

at line 53
ProductRelationshipSettings|PrimaryKeyInterface updateSettings(stdClass $data)

Edit product relationship settings

at line 69
null|ProductRelationshipSettings getSettings()

Find product relationship settings

Return Value

null|ProductRelationshipSettings

at line 78
bool getRelationshipSettingsForMainProduct()

Get product relationship settings from cache or cache it

Return Value

bool

at line 92
setToCache(ProductRelationshipSettings $settings)

Set to product relationship settings to cache

Parameters

ProductRelationshipSettings $settings