Copied!

ProductAvailabilityStrategyInterface

ProductAvailabilityStrategyInterface.php : 15

Methods

publicaccept()

ProductAvailabilityStrategyInterface.php : 17
public accept(AvailabilityContextInterface $context) : bool

Parameters

Name Type Default value Description
$context AvailabilityContextInterface - -

Return values

bool

publicgetProductAvailability()

ProductAvailabilityStrategyInterface.php : 19
public getProductAvailability(ProductInterface $product, AvailabilityContextInterface $context) : AvailabilityInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$context AvailabilityContextInterface - -

Return values

AvailabilityInterface