- Classes
- Namespaces
- Interfaces
- Traits
- Index

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 19
`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 29
`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 39
`public LayersInterface remove(integer $offset)`

Removes the image at offset

#### Parameters

integer | $offset |

#### Return Value

LayersInterface |

#### Exceptions

RuntimeException |
InvalidArgumentException |

###
at line 49
`public ImageInterface get(integer $offset)`

Returns the image at offset

#### Parameters

integer | $offset |

#### Return Value

ImageInterface |

#### Exceptions

RuntimeException |
InvalidArgumentException |

###
at line 57
`public Boolean has(integer $offset)`

Returns true if a layer at offset is preset

#### Parameters

integer | $offset |

#### Return Value

Boolean |