Copied!

ProductPriceServiceDecorator

ProductPriceServiceDecorator.php : 22

Properties

protected $innerService

ProductPriceServiceDecorator.php : 24
protected ProductPriceServiceInterface $innerService

Methods

public__construct()

ProductPriceServiceDecorator.php : 26
public __construct(ProductPriceServiceInterface $innerService)

Parameters

Name Type Default value Description
$innerService ProductPriceServiceInterface - -

publiccreateProductPrice()

ProductPriceServiceDecorator.php : 46
public createProductPrice(ProductPriceCreateStructInterface $struct) : PriceInterface

Parameters

Name Type Default value Description
$struct ProductPriceCreateStructInterface - -

Return values

PriceInterface

publicdeletePrice()

ProductPriceServiceDecorator.php : 36
public deletePrice(ProductPriceDeleteStructInterface $struct) : void

Parameters

Name Type Default value Description
$struct ProductPriceDeleteStructInterface - -

publicexecute()

ProductPriceServiceDecorator.php : 31
public execute(iterable<string|int, mixed> $structs) : void

Parameters

Name Type Default value Description
$structs iterable<string|int, mixed> - -

publicfindOneForCustomerGroup()

ProductPriceServiceDecorator.php : 56
public findOneForCustomerGroup(PriceInterface $price, CustomerGroupInterface $customerGroup) : CustomPriceAwareInterface|null

Parameters

Name Type Default value Description
$price PriceInterface - -
$customerGroup CustomerGroupInterface - -

Return values

CustomPriceAwareInterface|null

publicfindPrices()

ProductPriceServiceDecorator.php : 75
public findPrices([PriceQuery|null $query = null ]) : PriceListInterface

Parameters

Name Type Default value Description
$query PriceQuery|null null -

Return values

PriceListInterface

publicfindPricesByProductCode()

ProductPriceServiceDecorator.php : 41
public findPricesByProductCode(string $code) : PriceListInterface

Parameters

Name Type Default value Description
$code string - -

Return values

PriceListInterface

publicgetPriceById()

ProductPriceServiceDecorator.php : 70
public getPriceById(int $id) : PriceInterface

Parameters

Name Type Default value Description
$id int - -

Return values

PriceInterface

publicgetPriceByProductAndCurrency()

ProductPriceServiceDecorator.php : 63
public getPriceByProductAndCurrency(ProductInterface $product, CurrencyInterface $currency) : PriceInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$currency CurrencyInterface - -

Return values

PriceInterface

publicupdateProductPrice()

ProductPriceServiceDecorator.php : 51
public updateProductPrice(ProductPriceUpdateStructInterface $struct) : PriceInterface

Parameters

Name Type Default value Description
$struct ProductPriceUpdateStructInterface - -

Return values

PriceInterface