Copied!

ProductAvailabilityServiceInterface

ProductAvailabilityServiceInterface.php : 17

Methods

publiccreateProductAvailability()

ProductAvailabilityServiceInterface.php : 28
public createProductAvailability(ProductAvailabilityCreateStruct $struct) : AvailabilityInterface

Parameters

Name Type Default value Description
$struct ProductAvailabilityCreateStruct - -

Return values

AvailabilityInterface

publicdecreaseProductAvailability()

ProductAvailabilityServiceInterface.php : 47
public decreaseProductAvailability(ProductInterface $product[, int $amount = 1 ]) : AvailabilityInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$amount int 1 -

Return values

AvailabilityInterface

Tags
Throws
InvalidArgumentException

publicdeleteProductAvailability()

ProductAvailabilityServiceInterface.php : 52
public deleteProductAvailability(ProductInterface $product) : void

Parameters

Name Type Default value Description
$product ProductInterface - -

publicgetAvailability()

ProductAvailabilityServiceInterface.php : 19
public getAvailability(ProductInterface $product[, AvailabilityContextInterface|null $availabilityContext = null ]) : AvailabilityInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$availabilityContext AvailabilityContextInterface|null null -

Return values

AvailabilityInterface

publichasAvailability()

ProductAvailabilityServiceInterface.php : 24
public hasAvailability(ProductInterface $product) : bool

Parameters

Name Type Default value Description
$product ProductInterface - -

Return values

bool

publicincreaseProductAvailability()

ProductAvailabilityServiceInterface.php : 39
public increaseProductAvailability(ProductInterface $product[, int $amount = 1 ]) : AvailabilityInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$amount int 1 -

Return values

AvailabilityInterface

Tags
Throws
InvalidArgumentException

publicupdateProductAvailability()

ProductAvailabilityServiceInterface.php : 32
public updateProductAvailability(ProductAvailabilityUpdateStruct $struct) : AvailabilityInterface

Parameters

Name Type Default value Description
$struct ProductAvailabilityUpdateStruct - -

Return values

AvailabilityInterface