AbstractLayer
extends AbstractEditObject
in package
implements
LayerInterface
AbstractYes
Layer abstract class
Tags
Table of Contents
Interfaces
- LayerInterface
- Layer interface
Properties
Methods
- __construct() : mixed
- Constructor
- getImage() : AbstractAdapter|null
- Get the image object
- getOpacity() : int|float|null
- Get the opacity
- hasImage() : bool
- Has the image object
- setImage() : AbstractEditObject
- Set the image object
- setOpacity() : AbstractLayer
- Set the image opacity.
Properties
$image
Image object
protected
mixed
$image
= null
$opacity
Opacity
protected
mixed
$opacity
= null
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
getImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullgetOpacity()
Get the opacity
public
getOpacity() : int|float|null
Return values
int|float|nullhasImage()
Has the image object
public
hasImage() : bool
Return values
boolsetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter
Return values
AbstractEditObjectsetOpacity()
Set the image opacity.
public
setOpacity(int|float $opacity) : AbstractLayer
Parameters
- $opacity : int|float