Class ProductImageContainer

Class ProductImageContainer

ProductImageContainer implements ProductImageContainerInterface

Methods summary

public __construct( void )

ProductImageContainer constructor.

public setPrimary( ProductImageInterface $image ) : ProductImageContainer

Sets the primary image of the image container.

public getPrimary( void ) : ProductImageInterface

Returns the product primary image from 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.

Properties summary

protected $primaryImage : ProductImage

Primary image.


		
protected $additionalImages : array

Additional image associative array.