DiscordPHP Documentation

AbstractRepositoryInterface extends CollectionInterface

Table of Contents

Methods

__construct()  : mixed
__get()  : mixed
cacheGet()  : PromiseInterface
cachePull()  : PromiseInterface
clear()  : void
collect()  : ExCollectionInterface
create()  : Part
delete()  : PromiseInterface
fetch()  : PromiseInterface
filter()  : ExCollectionInterface
find()  : mixed
first()  : mixed
fresh()  : PromiseInterface
freshen()  : PromiseInterface
get()  : mixed
getIterator()  : Traversable
has()  : bool
jsonSerialize()  : array<string|int, mixed>
keys()  : array<string|int, mixed>
last()  : mixed
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
pull()  : mixed
pushItem()  : self
save()  : PromiseInterface
set()  : mixed
toArray()  : array<string|int, mixed>
values()  : array<string|int, mixed>

Methods

__construct()

public __construct(mixed $discord[, array<string|int, mixed> $vars = [] ]) : mixed
Parameters
$discord : mixed
$vars : array<string|int, mixed> = []

cacheGet()

public cacheGet(mixed $offset) : PromiseInterface
Parameters
$offset : mixed
Return values
PromiseInterface

cachePull()

public cachePull(mixed $key[, mixed $default = null ]) : PromiseInterface
Parameters
$key : mixed
$default : mixed = null
Return values
PromiseInterface

create()

public create([array<string|int, mixed>|object $attributes = [] ][, bool $created = false ]) : Part
Parameters
$attributes : array<string|int, mixed>|object = []
$created : bool = false
Return values
Part

delete()

public delete(mixed $part[, string|null $reason = null ]) : PromiseInterface
Parameters
$part : mixed
$reason : string|null = null
Return values
PromiseInterface

fetch()

public fetch(string $id[, bool $fresh = false ]) : PromiseInterface
Parameters
$id : string
$fresh : bool = false
Return values
PromiseInterface

filter()

public filter(callable $callback) : ExCollectionInterface
Parameters
$callback : callable
Return values
ExCollectionInterface

fresh()

public fresh(Part $part[, array<string|int, mixed> $queryparams = [] ]) : PromiseInterface
Parameters
$part : Part
$queryparams : array<string|int, mixed> = []
Return values
PromiseInterface

freshen()

public freshen([array<string|int, mixed> $queryparams = [] ]) : PromiseInterface
Parameters
$queryparams : array<string|int, mixed> = []
Return values
PromiseInterface

jsonSerialize()

public jsonSerialize([bool $assoc = true ]) : array<string|int, mixed>
Parameters
$assoc : bool = true
Return values
array<string|int, mixed>

save()

public save(Part $part[, string|null $reason = null ]) : PromiseInterface

Use Part->save($reason) to ensure permissions are checked.

Parameters
$part : Part
$reason : string|null = null
Return values
PromiseInterface

toArray()

public toArray([bool $assoc = true ]) : array<string|int, mixed>

Use jsonSerialize

Parameters
$assoc : bool = true
Return values
array<string|int, mixed>

        
On this page

Search results