Values
extends AbstractCollection
in package
Table of Contents
- $position : int
- $values : array<string|int, object>
- __construct() : mixed
- Constructor.
- count() : int
- current() : Value
- currentValue() : object
- Return current iteration value.
- jsonSerialize() : array<string|int, mixed>
- key() : int
- next() : void
- offsetExists() : bool
- offsetGet() : object
- offsetSet() : void
- offsetUnset() : void
- rewind() : void
- valid() : bool
- isValid() : bool
- Return whether the provided value is valid.
Properties
$position
protected
int
$position
= 0
$values
protected
array<string|int, object>
$values
= []
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
- $values : array<string|int, mixed> = []
Return values
mixed —count()
public
count() : int
Tags
Return values
int —current()
public
current() : Value
Tags
Return values
Value —currentValue()
Return current iteration value.
public
currentValue() : object
Return values
object —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —key()
public
key() : int
Tags
Return values
int —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) : object
Parameters
- $offset : mixed
Tags
Return values
object —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 —valid()
public
valid() : bool
Tags
Return values
bool —isValid()
Return whether the provided value is valid.
protected
isValid(mixed $value) : bool
Parameters
- $value : mixed