Copied!

DiscountServiceDecorator

DiscountServiceDecorator.php : 17
Abstract

Properties

protected $innerService

DiscountServiceDecorator.php : 19
protected DiscountServiceInterface $innerService

Methods

public__construct()

DiscountServiceDecorator.php : 21
public __construct(DiscountServiceInterface $innerService)

Parameters

Name Type Default value Description
$innerService DiscountServiceInterface - -

publiccreateDiscount()

DiscountServiceDecorator.php : 26
public createDiscount(DiscountCreateStruct $createStruct) : DiscountInterface

Parameters

Name Type Default value Description
$createStruct DiscountCreateStruct - -

Return values

DiscountInterface

publicdeleteDiscount()

DiscountServiceDecorator.php : 38
public deleteDiscount(DiscountInterface $discount) : void

Parameters

Name Type Default value Description
$discount DiscountInterface - -

publicdeleteTranslation()

DiscountServiceDecorator.php : 53
public deleteTranslation(DiscountInterface $discount, int $languageId) : void

Parameters

Name Type Default value Description
$discount DiscountInterface - -
$languageId int - -

publicdisableDiscount()

DiscountServiceDecorator.php : 48
public disableDiscount(DiscountInterface $discount) : void

Parameters

Name Type Default value Description
$discount DiscountInterface - -

publicenableDiscount()

DiscountServiceDecorator.php : 43
public enableDiscount(DiscountInterface $discount) : void

Parameters

Name Type Default value Description
$discount DiscountInterface - -

publicfindDiscounts()

DiscountServiceDecorator.php : 68
public findDiscounts([DiscountQuery|null $discountQuery = null ]) : DiscountListInterface

Parameters

Name Type Default value Description
$discountQuery DiscountQuery|null null -

Return values

DiscountListInterface

publicgetDiscountById()

DiscountServiceDecorator.php : 58
public getDiscountById(int $id) : DiscountInterface

Parameters

Name Type Default value Description
$id int - -

Return values

DiscountInterface

publicgetDiscountByIdentifier()

DiscountServiceDecorator.php : 63
public getDiscountByIdentifier(string $identifier) : DiscountInterface

Parameters

Name Type Default value Description
$identifier string - -

Return values

DiscountInterface

publicupdateDiscount()

DiscountServiceDecorator.php : 31
public updateDiscount(DiscountInterface $discount, DiscountUpdateStruct $updateStruct) : DiscountInterface

Parameters

Name Type Default value Description
$discount DiscountInterface - -
$updateStruct DiscountUpdateStruct - -

Return values

DiscountInterface