<TKey is int, TValue>
Implements ListInterface
Unless otherwise noted, {@see ListTrait} methods operate on one instance of the class. Immutable lists should use {@see ImmutableListTrait} instead.
Methods | ||
---|---|---|
public
|
add($value)
|
# |
public
|
set($key, $value)
|
# |
public
|
merge($items)
|
# |
public
|
push(...$item)
|
# |
public
|
unshift(...$item)
|
# |
public
|
offsetSet(int|null $offset, TValue $value): void
|
# |
public
|
offsetUnset(int $offset): void
|
# |
protected
|
getItems(Arrayable<array-key, TValue>|iterable<array-key, TValue> $items): list<TValue>
|
# |
protected
|
replaceItems(array<int, TValue> $items, ?bool $getClone = null): static
|
# |