Class ProductImageContainer
Class ProductImageContainer
- ProductImageContainer implements ProductImageContainerInterface
Package: Product\Entities
Category: System
Located at Services/Core/Product/Entities/ProductImageContainer.php
Category: System
Located at Services/Core/Product/Entities/ProductImageContainer.php
Methods summary
public
setPrimary( ProductImageInterface $image )
: ProductImageContainer
Sets the primary image of the image container.
public
addAdditional( ProductImageInterface $image )
: ProductImageContainer
Adds an additional image to the additional images array.
public
getAdditionals( void )
: ProductImageCollection
Returns the array of additional images as a collection.
public
replaceAdditional( FilenameStringType $imageFile, ProductImageInterface $image )
: ProductImageContainer
Replaces an additional product image in the container.
public
delete( FilenameStringType $imageFile )
: ProductImageContainer
Deletes an image from the additional images array.