UserCollection extends Collection
Table of Contents
Methods
- add() : void
- count() : int
- Count elements of an object
- current() : mixed
- Return the current element
- getClientIdList() : array<string|int, mixed>
- getIterator() : Traversable
- isEmpty() : bool
- Checks if collection is empty.
- key() : int|string|null
- Return the key of the current element
- next() : mixed
- Move forward to next element
- offsetExists() : bool
- Whether an offset exists
- offsetGet() : mixed
- Offset to retrieve
- offsetSet() : void
- Offset to set
- offsetUnset() : void
- Offset to unset
- rewind() : mixed
- Rewind the Iterator to the first element
- valid() : bool
- Checks if current position is valid
Methods
add()
public
add(mixed $value) : void
Parameters
- $value : mixed
count()
Count elements of an object
public
count() : int
Return values
intcurrent()
Return the current element
public
current() : mixed
getClientIdList()
public
getClientIdList() : array<string|int, mixed>
Return values
array<string|int, mixed>getIterator()
public
getIterator() : Traversable
Return values
TraversableisEmpty()
Checks if collection is empty.
public
isEmpty() : bool
Return values
boolkey()
Return the key of the current element
public
key() : int|string|null
Return values
int|string|nullnext()
Move forward to next element
public
next() : mixed
offsetExists()
Whether an offset exists
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
Offset to retrieve
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
Offset to set
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
Offset to unset
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
rewind()
Rewind the Iterator to the first element
public
rewind() : mixed
valid()
Checks if current position is valid
public
valid() : bool