DataChangeCollection
in package
implements
IteratorAggregate, Countable, JsonSerializable
Class DataChangeCollection
Tags
Interfaces, Classes and Traits
- IteratorAggregate
- Countable
- JsonSerializable
Table of Contents
- $dataChanges : array<string|int, DataChange>
- __construct() : mixed
- DataChangeCollection constructor.
- count() : int
- Count elements of an object.
- getIterator() : Traversable
- Returns iterator object.
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
Properties
$dataChanges
protected
array<string|int, DataChange>
$dataChanges
Methods
__construct()
DataChangeCollection constructor.
public
__construct(array<string|int, DataChange> $dataChanges) : mixed
Parameters
- $dataChanges : array<string|int, DataChange>
Return values
mixed —count()
Count elements of an object.
public
count() : int
Return values
int —The custom count as an integer.
getIterator()
Returns iterator object.
public
getIterator() : Traversable
Return values
Traversable —An instance of an object implementing Iterator or Traversable
jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Return values
mixed —Data which can be serialized by json_encode, which is a value of any type other than a resource.