<TValue>
extends |
CollectionInterface<int, TValue> |
---|
An array-like list of items
Methods | ||
---|---|---|
public
|
add(TValue $value): static
|
# |
public
|
set(int $key, TValue $value): static
|
# |
public
|
push(TValue ...$item): static
|
# |
public
|
unshift(TValue ...$item): static
|
# |
Methods inherited from Salient\Contract\Collection\CollectionInterface |
---|
__construct(), empty(), copy(), has(), get(), unset(), merge(), sort(), reverse(), forEach(), map(), filter(), find(), only(), onlyIn(), except(), exceptIn(), slice(), hasValue(), keyOf(), firstOf(), all(), first(), last(), nth(), pop(), shift() |
Methods inherited from ArrayAccess |
---|
offsetExists(), offsetGet(), offsetSet(), offsetUnset() |
Methods inherited from Salient\Contract\Core\Arrayable |
---|
toArray() |
Methods inherited from Countable |
---|
count() |
Methods inherited from IteratorAggregate |
---|
getIterator() |
Methods inherited from JsonSerializable |
---|
jsonSerialize() |
Methods inherited from Salient\Contract\Core\Jsonable |
---|
toJson() |
Constants inherited from Salient\Contract\Collection\CollectionInterface |
---|
|