AbstractLayers
in package
implements
LayersInterface, ClassFactoryAwareInterface
AbstractYes
Table of Contents
Interfaces
- LayersInterface
- The layers interface.
- ClassFactoryAwareInterface
- An interface that classes that accepts a class factory should implement.
Properties
Methods
- add() : $this
- Adds an image at the end of the layers stack.
- get() : ImageInterface
- Returns the image at offset.
- getClassFactory() : ClassFactoryInterface
- Get the class factory instance to be used.
- has() : bool
- Returns true if a layer at offset is preset.
- remove() : $this
- Removes the image at offset.
- set() : $this
- Set an image at offset.
- setClassFactory() : $this
- Set the class factory instance to be used.
Properties
$classFactory
private
ClassFactoryInterface|null
$classFactory
Methods
add()
Adds an image at the end of the layers stack.
public
add(ImageInterface $image) : $this
Parameters
- $image : ImageInterface
Tags
Return values
$thisget()
Returns the image at offset.
public
get(mixed $offset) : ImageInterface
Parameters
- $offset : mixed
Tags
Return values
ImageInterfacegetClassFactory()
Get the class factory instance to be used.
public
getClassFactory() : ClassFactoryInterface
Tags
Return values
ClassFactoryInterfacehas()
Returns true if a layer at offset is preset.
public
has(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Return values
boolremove()
Removes the image at offset.
public
remove(mixed $offset) : $this
Parameters
- $offset : mixed
Tags
Return values
$thisset()
Set an image at offset.
public
set(mixed $offset, ImageInterface $image) : $this
Parameters
- $offset : mixed
- $image : ImageInterface
Tags
Return values
$thissetClassFactory()
Set the class factory instance to be used.
public
setClassFactory(ClassFactoryInterface $classFactory) : $this
Parameters
- $classFactory : ClassFactoryInterface