Properties¶
$items¶
AbstractInMemoryCollection.php
:
24
|
|
Methods¶
__construct() ¶
ArrayList.php
:
24
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$items | array<string|int, mixed> | [] | - |
append() ¶
ParentLocationCollection.php
:
25
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$item | mixed | - | - |
clear() ¶
MutableArrayList.php
:
37
|
|
contains() ¶
ArrayList.php
:
50
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$value | mixed | - | - |
Return values
bool
count() ¶
AbstractInMemoryCollection.php
:
49
|
|
Return values
int
exists() ¶
AbstractInMemoryCollection.php
:
81
Tests the existence of an element that satisfies the given predicate.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$predicate | Closure | - | - |
Return values
bool
filter() ¶
AbstractInMemoryCollection.php
:
57
Returns all the elements of this collection that satisfy the predicate.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$predicate | Closure | - | - |
Return values
self
first() ¶
ArrayList.php
:
29
Return first element of collection.
|
|
Return values
TValue
forAll() ¶
AbstractInMemoryCollection.php
:
70
Tests whether the given predicate holds for all elements of this collection.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$predicate | Closure | - | - |
Return values
bool
getIterator() ¶
AbstractInMemoryCollection.php
:
44
|
|
Return values
Iterator
isEmpty() ¶
AbstractInMemoryCollection.php
:
34
|
|
Return values
bool
last() ¶
ArrayList.php
:
38
Return last element of collection.
|
|
Return values
TValue
map() ¶
AbstractInMemoryCollection.php
:
65
Applies the given function to each element in the collection and returns a new collection with the elements returned by the function.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$function | Closure | - | - |
Return values
self
prepend() ¶
MutableArrayList.php
:
24
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$value | mixed | - | - |
remove() ¶
MutableArrayList.php
:
29
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$value | mixed | - | - |
toArray() ¶
AbstractInMemoryCollection.php
:
39
|
|
Return values
array<string|int, TValue>
createFrom() ¶
MutableArrayList.php
:
42
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$items | array<string|int, mixed> | - | - |