ImageList
in package
implements
Countable, Iterator, ArrayAccess, JsonSerializable
Class ImageList
Interfaces, Classes and Traits
- Countable
- Iterator
- ArrayAccess
- JsonSerializable
Table of Contents
- $listId : ListId|null
- $listName : ListName
- $position : int
- $values : array<string|int, ImageInterface>
- __construct() : mixed
- ImageList constructor.
- addImage() : void
- count() : int
- current() : mixed
- getImageById() : ImageInterface
- jsonSerialize() : mixed
- key() : mixed
- listId() : ListId|null
- listName() : ListName
- next() : void
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- rewind() : void
- toArray() : array<string|int, ImageInterface>
- valid() : bool
Properties
$listId
protected
ListId|null
$listId
$listName
protected
ListName
$listName
$position
protected
int
$position
= 0
$values
protected
array<string|int, ImageInterface>
$values
= []
Methods
__construct()
ImageList constructor.
public
__construct(ListName $listName[, array<string|int, ImageInterface> $values = [] ][, ListId $listId = null ]) : mixed
Parameters
- $listName : ListName
- $values : array<string|int, ImageInterface> = []
- $listId : ListId = null
Return values
mixed —addImage()
public
addImage(ImageInterface $image) : void
Parameters
- $image : ImageInterface
Return values
void —count()
public
count() : int
Tags
Return values
int —current()
public
current() : mixed
Tags
Return values
mixed —getImageById()
public
getImageById(Id $id) : ImageInterface
Parameters
- $id : Id
Tags
Return values
ImageInterface —jsonSerialize()
public
jsonSerialize() : mixed
Tags
Return values
mixed —key()
public
key() : mixed
Tags
Return values
mixed —listId()
public
listId() : ListId|null
Return values
ListId|null —listName()
public
listName() : ListName
Return values
ListName —next()
public
next() : void
Tags
Return values
void —offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Return values
bool —offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Tags
Return values
mixed —offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
Return values
void —offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
Tags
Return values
void —rewind()
public
rewind() : void
Tags
Return values
void —toArray()
public
toArray() : array<string|int, ImageInterface>
Return values
array<string|int, ImageInterface> —valid()
public
valid() : bool