DiscordPHP Documentation

PartInterface

This class is the base of all objects that are returned. All "Parts" extend off this base class.

Tags
since
2.0.0

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
self

fetch()

public fetch() : PromiseInterface
Return values
PromiseInterface

fill()

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>

getPublicAttributes()

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>

jsonSerialize()

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

offsetExists()

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

offsetGet()

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|null

unserialize()

public unserialize(mixed $data) : void
Parameters
$data : mixed

        
On this page

Search results