Author
in package
Read onlyYes
FinalYes
Table of Contents
Properties
- $email : string|null
- $id : string
- $isBot : bool
- $isMe : bool
- $localizations : array<string|int, LocalizationValue>
- $name : string|null
- $profilePicture : string|null
Methods
- __construct() : mixed
- getLocalization() : string|null
- hasLocalization() : bool
- withLocalizations() : self
Properties
public
string|null
$email
= null
$id
public
string
$id
$isBot
public
bool
$isBot
= false
$isMe
public
bool
$isMe
= false
$localizations
public
array<string|int, LocalizationValue>
$localizations
$name
public
string|null
$name
= null
$profilePicture
public
string|null
$profilePicture
= null
Methods
__construct()
public
__construct(string $id[, string|null $name = null ][, string|null $email = null ][, bool $isMe = false ][, bool $isBot = false ][, string|null $profilePicture = null ], LocalizationValue ...$localizations) : mixed
Parameters
- $id : string
- $name : string|null = null
- $email : string|null = null
- $isMe : bool = false
- $isBot : bool = false
- $profilePicture : string|null = null
- $localizations : LocalizationValue
getLocalization()
public
getLocalization(LocalizationType $type) : string|null
Parameters
- $type : LocalizationType
Return values
string|nullhasLocalization()
public
hasLocalization(LocalizationType $type) : bool
Parameters
- $type : LocalizationType
Return values
boolwithLocalizations()
public
withLocalizations(LocalizationValue ...$localizations) : self
Parameters
- $localizations : LocalizationValue