PartInterface
in
This class is the base of all objects that are returned. All "Parts" extend off this base class.
Tags
Table of Contents
Methods
- __construct() : mixed
- __debugInfo() : array<string|int, mixed>
- __get() : mixed
- __serialize() : array<string|int, mixed>
- __set() : void
- __toString() : string
- __unserialize() : void
- createOf() : self
- fetch() : PromiseInterface
- fill() : void
- getCreatableAttributes() : array<string|int, mixed>
- getDiscord() : Discord
- getPublicAttributes() : array<string|int, mixed>
- getRawAttributes() : array<string|int, mixed>
- getRepositoryAttributes() : array<string|int, mixed>
- getUpdatableAttributes() : array<string|int, mixed>
- isPartial() : bool
- jsonSerialize() : array<string|int, mixed>
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- serialize() : string|null
- unserialize() : void
Methods
__construct()
public
__construct(Discord $discord[, array<string|int, mixed> $attributes = [] ][, bool $created = false ]) : mixed
Parameters
- $discord : Discord
- $attributes : array<string|int, mixed> = []
- $created : bool = false
__debugInfo()
public
__debugInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>__get()
public
__get(string $key) : mixed
Parameters
- $key : string
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__set()
public
__set(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
__toString()
public
__toString() : string
Return values
string__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
createOf()
public
createOf(string $class, array<string|int, mixed>|object $data) : self
Parameters
- $class : string
- $data : array<string|int, mixed>|object
Return values
selffetch()
public
fetch() : PromiseInterface
Return values
PromiseInterfacefill()
public
fill(array<string|int, mixed> $attributes) : void
Parameters
- $attributes : array<string|int, mixed>
getCreatableAttributes()
public
getCreatableAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getDiscord()
public
getDiscord() : Discord
Return values
DiscordgetPublicAttributes()
public
getPublicAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getRawAttributes()
public
getRawAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getRepositoryAttributes()
public
getRepositoryAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getUpdatableAttributes()
public
getUpdatableAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>isPartial()
public
isPartial() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>offsetExists()
public
offsetExists(mixed $key) : bool
Parameters
- $key : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $key) : mixed
Parameters
- $key : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
public
offsetSet(mixed $key, mixed $value) : void
Parameters
- $key : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $key) : void
Parameters
- $key : mixed
serialize()
public
serialize() : string|null
Return values
string|nullunserialize()
public
unserialize(mixed $data) : void
Parameters
- $data : mixed