AbstractRepositoryInterface
extends
CollectionInterface
in
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> = []
__get()
public
__get(string $key) : mixed
Parameters
- $key : string
cacheGet()
public
cacheGet(mixed $offset) : PromiseInterface
Parameters
- $offset : mixed
Return values
PromiseInterfacecachePull()
public
cachePull(mixed $key[, mixed $default = null ]) : PromiseInterface
Parameters
- $key : mixed
- $default : mixed = null
Return values
PromiseInterfaceclear()
public
clear() : void
collect()
public
collect() : ExCollectionInterface
Return values
ExCollectionInterfacecreate()
public
create([array<string|int, mixed>|object $attributes = [] ][, bool $created = false ]) : Part
Parameters
- $attributes : array<string|int, mixed>|object = []
- $created : bool = false
Return values
Partdelete()
public
delete(mixed $part[, string|null $reason = null ]) : PromiseInterface
Parameters
- $part : mixed
- $reason : string|null = null
Return values
PromiseInterfacefetch()
public
fetch(string $id[, bool $fresh = false ]) : PromiseInterface
Parameters
- $id : string
- $fresh : bool = false
Return values
PromiseInterfacefilter()
public
filter(callable $callback) : ExCollectionInterface
Parameters
- $callback : callable
Return values
ExCollectionInterfacefind()
public
find(callable $callback) : mixed
Parameters
- $callback : callable
first()
public
first() : mixed
fresh()
public
fresh(Part $part[, array<string|int, mixed> $queryparams = [] ]) : PromiseInterface
Parameters
- $part : Part
- $queryparams : array<string|int, mixed> = []
Return values
PromiseInterfacefreshen()
public
freshen([array<string|int, mixed> $queryparams = [] ]) : PromiseInterface
Parameters
- $queryparams : array<string|int, mixed> = []
Return values
PromiseInterfaceget()
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
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
offsetExists()
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
pushItem()
public
pushItem(mixed $item) : self
Parameters
- $item : mixed
Return values
selfsave()
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
PromiseInterfaceset()
public
set(mixed $offset, mixed $value) : mixed
Parameters
- $offset : mixed
- $value : mixed
toArray()
public
toArray([bool $assoc = true ]) : array<string|int, mixed>
Use jsonSerialize
Parameters
- $assoc : bool = true
Return values
array<string|int, mixed>values()
public
values() : array<string|int, mixed>