abstract class AbstractLayers implements LayersInterface, ClassFactoryAwareInterface

Methods

$this
add(ImageInterface $image)

Adds an image at the end of the layers stack.

$this
set(int $offset, ImageInterface $image)

Set an image at offset.

$this
remove(int $offset)

Removes the image at offset.

get(int $offset)

Returns the image at offset.

bool
has(int $offset)

Returns true if a layer at offset is preset.

$this
setClassFactory(ClassFactoryInterface $classFactory)

Set the class factory instance to be used.

getClassFactory()

Get the class factory instance to be used.

Details

at line 30
$this add(ImageInterface $image)

Adds an image at the end of the layers stack.

Parameters

ImageInterface $image

Return Value

$this

Exceptions

RuntimeException

See also

LayersInterface::add

at line 42
$this set(int $offset, ImageInterface $image)

Set an image at offset.

Parameters

int $offset
ImageInterface $image

Return Value

$this

Exceptions

RuntimeException
InvalidArgumentException
OutOfBoundsException

See also

LayersInterface::set

at line 54
$this remove(int $offset)

Removes the image at offset.

Parameters

int $offset

Return Value

$this

Exceptions

RuntimeException
InvalidArgumentException

See also

LayersInterface::remove

at line 66
ImageInterface get(int $offset)

Returns the image at offset.

Parameters

int $offset

Return Value

ImageInterface

Exceptions

RuntimeException
InvalidArgumentException

See also

LayersInterface::get

at line 76
bool has(int $offset)

Returns true if a layer at offset is preset.

Parameters

int $offset

Return Value

bool

See also

LayersInterface::has

at line 86
$this setClassFactory(ClassFactoryInterface $classFactory)

Set the class factory instance to be used.

Parameters

ClassFactoryInterface $classFactory

Return Value

$this

See also

ClassFactoryAwareInterface::setClassFactory

at line 98
ClassFactoryInterface getClassFactory()

Get the class factory instance to be used.