Copied!

AvailabilityAwareInterface

AvailabilityAwareInterface.php : 14

Methods

publicgetAssets()

ProductInterface.php : 25
public getAssets() : AssetCollectionInterface

Return values

AssetCollectionInterface

publicgetAttributes()

ProductInterface.php : 34
public getAttributes() : array<string|int, AttributeInterface>

Return values

array<string|int, AttributeInterface>

publicgetAvailability()

AvailabilityAwareInterface.php : 16
public getAvailability([AvailabilityContextInterface|null $context = null ]) : AvailabilityInterface

Parameters

Name Type Default value Description
$context AvailabilityContextInterface|null null -

Return values

AvailabilityInterface

publicgetCode()

ProductInterface.php : 17
public getCode() : string

Return values

string

publicgetCreatedAt()

ProductInterface.php : 27
public getCreatedAt() : DateTimeInterface

Return values

DateTimeInterface

publicgetName()

ProductInterface.php : 19
public getName() : string

Return values

string

publicgetProductType()

ProductInterface.php : 21
public getProductType() : ProductTypeInterface

Return values

ProductTypeInterface

publicgetThumbnail()

ProductInterface.php : 23
public getThumbnail() : Thumbnail|null

Return values

Thumbnail|null

publicgetUpdatedAt()

ProductInterface.php : 29
public getUpdatedAt() : DateTimeInterface

Return values

DateTimeInterface

publichasAvailability()

AvailabilityAwareInterface.php : 23
public hasAvailability() : bool

Return values

bool

publicisAvailable()

AvailabilityAwareInterface.php : 21

Return true if product availability is defined and product is available.

public isAvailable([AvailabilityContextInterface|null $context = null ]) : bool

Parameters

Name Type Default value Description
$context AvailabilityContextInterface|null null -

Return values

bool

publicisBaseProduct()

ProductInterface.php : 36
public isBaseProduct() : bool

Return values

bool

publicisVariant()

ProductInterface.php : 38
public isVariant() : bool

Return values

bool