Copied!

ProductProviderInterface

ProductProviderInterface.php : 16
Interface

What other packages can ask about a product, identified by a {@see ProductIdentifier} value.

Methods

publicgetProductState()

ProductProviderInterface.php : 21
public getProductState(string $identifier) : ProductConfigurationState

Parameters

Name Type Default value Description
$identifier string - -

Return values

ProductConfigurationState

Tags
Throws
ProductNotFoundException

publicisPromoted()

ProductProviderInterface.php : 28

Tells whether this package promotes the product: it is not enabled and its promotion is switched on.

public isPromoted(string $identifier) : bool

Parameters

Name Type Default value Description
$identifier string - -

Return values

bool

Tags
Throws
ProductNotFoundException