Class ProductImage

Class ProductImage

ProductImage implements ProductImageInterface

Direct known subclasses

EmptyProductImage

Methods summary

public __construct( FilenameStringType $filename )

ProductImage constructor.

public getFilename( void ) : string

Get Filename

public getAltText( LanguageCode $language ) : string

Get Alt Text

public isVisible( void ) : boolean

Is Visible

public setAltText( StringType $text, LanguageCode $language ) : string

Set Alt Text

public setVisible( BoolType $visible ) : ProductImageInterface

Set Visible

Properties summary

protected $filename : string

Filename of the product image


		
protected $altTexts : array

Alt texts of the image.

array()
protected $visibility : boolean

Is the product image visible?

true