DiscordPHP Documentation

CollectionInterface extends ArrayAccess, JsonSerializable, IteratorAggregate, Countable

Table of Contents

Methods

__debugInfo()  : array<string|int, mixed>
__serialize()  : array<string|int, mixed>
__unserialize()  : void
clear()  : void
count()  : int
fill()  : self
filter()  : mixed
find()  : mixed
first()  : mixed
get()  : mixed
getIterator()  : Traversable
has()  : bool
isset()  : bool
jsonSerialize()  : array<string|int, mixed>
last()  : mixed
map()  : mixed
merge()  : self
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
pull()  : mixed
push()  : self
pushItem()  : self
serialize()  : string
set()  : mixed
toArray()  : mixed
unserialize()  : void

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>

fill()

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

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

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

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

unserialize()

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

        
On this page

Search results