DiscordPHP Documentation

ExCollectionInterface extends CollectionInterface

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()  : mixed
fill()  : self
filter()  : mixed
find()  : mixed
find_key()  : mixed
first()  : mixed
for()  : mixed
from()  : mixed
get()  : mixed
getIterator()  : Traversable
has()  : bool
intersect()  : mixed
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()  : mixed
search()  : string|int|false
serialize()  : string
set()  : mixed
shift()  : mixed
slice()  : mixed
sort()  : mixed
splice()  : self
toArray()  : mixed
unique()  : mixed
unserialize()  : void
values()  : array<string|int, mixed>
walk()  : mixed

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>

all()

public all(callable $callback) : bool
Parameters
$callback : callable
Return values
bool

any()

public any(callable $callback) : bool
Parameters
$callback : callable
Return values
bool

diff()

public diff(mixed $items[, callable|null $callback = null ]) : mixed
Parameters
$items : mixed
$callback : callable|null = null

fill()

public fill(mixed $items) : self
Parameters
$items : mixed
Return values
self

for()

public static for(string $class[, string|null $discrim = 'id' ]) : mixed
Parameters
$class : string
$discrim : string|null = 'id'

from()

public static from([array<string|int, mixed> $items = [] ][, string|null $discrim = 'id' ][, string|null $class = null ]) : mixed
Parameters
$items : array<string|int, mixed> = []
$discrim : string|null = 'id'
$class : string|null = null

get()

public get(string $discrim, mixed $key) : mixed
Parameters
$discrim : string
$key : mixed

has()

public has(mixed ...$keys) : bool
Parameters
$keys : mixed
Return values
bool

intersect()

public intersect(mixed $items[, callable|null $callback = null ]) : mixed
Parameters
$items : mixed
$callback : callable|null = null

isset()

public isset(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

merge()

public merge(mixed $collection) : self
Parameters
$collection : mixed
Return values
self

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Attributes
#[ReturnTypeWillChange]

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : 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
self

pushItem()

public pushItem(mixed $item) : self
Parameters
$item : mixed
Return values
self

reduce()

public reduce(callable $callback[, mixed $initial = null ]) : mixed
Parameters
$callback : callable
$initial : mixed = null
public search(mixed $needle[, bool $strict = false ]) : string|int|false
Parameters
$needle : mixed
$strict : bool = false
Return values
string|int|false

serialize()

public serialize([int $flags = 0 ][, int|null $depth = 512 ]) : string
Parameters
$flags : int = 0
$depth : int|null = 512
Return values
string

set()

public set(mixed $offset, mixed $value) : mixed
Parameters
$offset : mixed
$value : mixed

slice()

public slice(int $offset[, int|null $length = null ][, bool $preserve_keys = false ]) : mixed
Parameters
$offset : int
$length : int|null = null
$preserve_keys : bool = false

sort()

public sort(callable|int|null $callback) : mixed
Parameters
$callback : callable|int|null

splice()

public splice(int $offset, int|null $length[, mixed $replacement = [] ]) : self
Parameters
$offset : int
$length : int|null
$replacement : mixed = []
Return values
self

unique()

public unique([int $flags = SORT_STRING ]) : mixed
Parameters
$flags : int = SORT_STRING

unserialize()

public unserialize(string $serialized) : void
Parameters
$serialized : string

walk()

public walk(callable $callback, mixed $arg) : mixed
Parameters
$callback : callable
$arg : mixed

        
On this page

Search results