Imagine API
Class

Imagine\Image\AbstractLayers

abstract class AbstractLayers implements LayersInterface

Methods

LayersInterface add(ImageInterface $image)

Adds an image at the end of the layers stack

LayersInterface set(integer $offset, ImageInterface $image)

Set an image at offset

LayersInterface remove(integer $offset)

Removes the image at offset

ImageInterface get(integer $offset)

Returns the image at offset

Boolean has(integer $offset)

Returns true if a layer at offset is preset

Details

at line 22
public LayersInterface add(ImageInterface $image)

Adds an image at the end of the layers stack

Parameters

ImageInterface $image

Return Value

LayersInterface

Exceptions

RuntimeException

at line 32
public LayersInterface set(integer $offset, ImageInterface $image)

Set an image at offset

Parameters

integer $offset
ImageInterface $image

Return Value

LayersInterface

Exceptions

RuntimeException
InvalidArgumentException
OutOfBoundsException

at line 42
public LayersInterface remove(integer $offset)

Removes the image at offset

Parameters

integer $offset

Return Value

LayersInterface

Exceptions

RuntimeException
InvalidArgumentException

at line 52
public ImageInterface get(integer $offset)

Returns the image at offset

Parameters

integer $offset

Return Value

ImageInterface

Exceptions

RuntimeException
InvalidArgumentException

at line 60
public Boolean has(integer $offset)

Returns true if a layer at offset is preset

Parameters

integer $offset

Return Value

Boolean