Documentation

ItemCollection extends ArrayIterator
in package
implements JsonSerializable

Collection of Psr\Cache\CacheItemInterface objects to be returned by getItems

Tags
see
http://php.net/manual/en/class.arrayiterator.php
see
http://php.net/manual/en/class.jsonserializable.php
extends

ArrayIterator<string, CacheItemInterface>

Interfaces, Classes, Traits and Enums

JsonSerializable

Table of Contents

__construct()  : mixed
Create the collection object from the raw CacheItemInterface array
jsonSerialize()  : array<string|int, CacheItemInterface>
Specify what data to serialize when using `json_encode`

Methods

__construct()

Create the collection object from the raw CacheItemInterface array

public __construct([array<string|int, CacheItemInterface$items = [] ], int $flags) : mixed
Parameters
$items : array<string|int, CacheItemInterface> = []
  • array of CacheItemInterface objects
$flags : int
  • flags
Return values
mixed

jsonSerialize()

Specify what data to serialize when using `json_encode`

public jsonSerialize() : array<string|int, CacheItemInterface>
Return values
array<string|int, CacheItemInterface>
  • The full set of data to be serialized

        

Search results