ExCollectionInterface
extends
CollectionInterface
in
Table of Contents
Methods
- __debugInfo() : array<string|int, mixed>
- __serialize() : array<string|int, mixed>
- __unserialize() : void
- all() : bool
- any() : bool
- clear() : void
- count() : int
- diff() : ExCollectionInterface
- fill() : self
- filter() : mixed
- find() : mixed
- find_key() : mixed
- first() : mixed
- get() : mixed
- getIterator() : Traversable
- has() : bool
- intersect() : ExCollectionInterface
- isset() : bool
- jsonSerialize() : array<string|int, mixed>
- keys() : array<string|int, mixed>
- last() : mixed
- map() : mixed
- merge() : self
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- pull() : mixed
- push() : self
- pushItem() : self
- reduce() : ExCollectionInterface
- search() : string|int|false
- serialize() : string
- set() : mixed
- shift() : mixed
- slice() : ExCollectionInterface
- sort() : ExCollectionInterface
- splice() : ExCollectionInterface
- toArray() : array<string|int, mixed>
- unique() : ExCollectionInterface
- unserialize() : void
- values() : array<string|int, mixed>
- walk() : ExCollectionInterface
Methods
__debugInfo()
public
__debugInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(mixed $data) : void
Parameters
- $data : mixed
all()
public
all(callable $callback) : bool
Parameters
- $callback : callable
Return values
boolany()
public
any(callable $callback) : bool
Parameters
- $callback : callable
Return values
boolclear()
public
clear() : void
count()
public
count() : int
Return values
intdiff()
public
diff(mixed $items[, callable|null $callback = null ]) : ExCollectionInterface
Parameters
- $items : mixed
- $callback : callable|null = null
Return values
ExCollectionInterfacefill()
public
fill(mixed $items) : self
Parameters
- $items : mixed
Return values
selffilter()
public
filter(callable $callback) : mixed
Parameters
- $callback : callable
find()
public
find(callable $callback) : mixed
Parameters
- $callback : callable
find_key()
public
find_key(callable $callback) : mixed
Parameters
- $callback : callable
first()
public
first() : mixed
get()
public
get(string $discrim, mixed $key) : mixed
Parameters
- $discrim : string
- $key : mixed
getIterator()
public
getIterator() : Traversable
Return values
Traversablehas()
public
has(mixed ...$keys) : bool
Parameters
- $keys : mixed
Return values
boolintersect()
public
intersect(mixed $items[, callable|null $callback = null ]) : ExCollectionInterface
Parameters
- $items : mixed
- $callback : callable|null = null
Return values
ExCollectionInterfaceisset()
public
isset(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booljsonSerialize()
public
jsonSerialize([bool $assoc = true ]) : array<string|int, mixed>
Parameters
- $assoc : bool = true
Return values
array<string|int, mixed>keys()
public
keys() : array<string|int, mixed>
Return values
array<string|int, mixed>last()
public
last() : mixed
map()
public
map(callable $callback) : mixed
Parameters
- $callback : callable
merge()
public
merge(mixed $collection) : self
Parameters
- $collection : mixed
Return values
selfoffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
pull()
public
pull(mixed $key[, mixed $default = null ]) : mixed
Parameters
- $key : mixed
- $default : mixed = null
push()
public
push(mixed ...$items) : self
Parameters
- $items : mixed
Return values
selfpushItem()
public
pushItem(mixed $item) : self
Parameters
- $item : mixed
Return values
selfreduce()
public
reduce(callable $callback[, mixed $initial = null ]) : ExCollectionInterface
Parameters
- $callback : callable
- $initial : mixed = null
Return values
ExCollectionInterfacesearch()
public
search(mixed $needle[, bool $strict = false ]) : string|int|false
Parameters
- $needle : mixed
- $strict : bool = false
Return values
string|int|falseserialize()
public
serialize([int $flags = 0 ][, int|null $depth = 512 ]) : string
Parameters
- $flags : int = 0
- $depth : int|null = 512
Return values
stringset()
public
set(mixed $offset, mixed $value) : mixed
Parameters
- $offset : mixed
- $value : mixed
shift()
public
shift() : mixed
slice()
public
slice(int $offset[, int|null $length = null ][, bool $preserve_keys = false ]) : ExCollectionInterface
Parameters
- $offset : int
- $length : int|null = null
- $preserve_keys : bool = false
Return values
ExCollectionInterfacesort()
public
sort(callable|int|null $callback) : ExCollectionInterface
Parameters
- $callback : callable|int|null
Return values
ExCollectionInterfacesplice()
public
splice(int $offset, int|null $length[, mixed $replacement = [] ]) : ExCollectionInterface
Parameters
- $offset : int
- $length : int|null
- $replacement : mixed = []
Return values
ExCollectionInterfacetoArray()
public
toArray([bool $assoc = true ]) : array<string|int, mixed>
Use jsonSerialize
Parameters
- $assoc : bool = true
Return values
array<string|int, mixed>unique()
public
unique([int $flags = SORT_STRING ]) : ExCollectionInterface
Parameters
- $flags : int = SORT_STRING
Return values
ExCollectionInterfaceunserialize()
public
unserialize(string $serialized) : void
Parameters
- $serialized : string
values()
public
values() : array<string|int, mixed>
Return values
array<string|int, mixed>walk()
public
walk(callable $callback[, mixed $arg = null ]) : ExCollectionInterface
Parameters
- $callback : callable
- $arg : mixed = null