RecentCollection
implements
IteratorAggregate, JsonSerializable
Table of Contents
Interfaces
- IteratorAggregate
- JsonSerializable
Methods
-
__construct()
: mixed
-
add()
: mixed
-
count()
: int
-
get()
: RecentItem|null
-
getAll()
: array<string|int, mixed>
-
getByItem()
: RecentItem|null
-
getEntityItems()
: array<string|int, mixed>
-
getIterator()
: ArrayIterator
-
has()
: bool
-
jsonSerialize()
: mixed
__construct()
public
__construct() : mixed
add()
public
add(RecentItem $recentItem) : mixed
Parameters
-
$recentItem
: RecentItem
-
count()
public
count() : int
get()
public
get(string $entityId, mixed $itemId) : RecentItem|null
Parameters
-
$entityId
: string
-
-
$itemId
: mixed
-
getAll()
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed>
getByItem()
public
getByItem(Item $item) : RecentItem|null
Parameters
-
$item
: Item
-
getEntityItems()
public
getEntityItems(string $entityId) : array<string|int, mixed>
Parameters
-
$entityId
: string
-
Return values
array<string|int, mixed>
getIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIterator
has()
public
has(RecentItem $recentItem) : bool
Parameters
-
$recentItem
: RecentItem
-
jsonSerialize()
public
jsonSerialize() : mixed