UserMe
extends JsonResource
in package
Uses
UserStatisticTrait, ExtraTrait
Class UserDetail.
Tags
Table of Contents
Properties
Methods
- getExtra() : array<string|int, mixed>
- getExtraAttributes() : array<string|int, mixed>
- toArray() : array<string, mixed>
- Transform the resource collection into an array.
- getAvatarId() : int|null
- This method shall be removed from version 5.2 Temporary solution for mobile app to avoid crash.
- getStatistic() : array<string, mixed>
- isBlocked() : bool
Properties
$resource
public
User
$resource
Methods
getExtra()
public
getExtra([mixed $resolution = null ]) : array<string|int, mixed>
Parameters
- $resolution : mixed = null
Return values
array<string|int, mixed>getExtraAttributes()
public
getExtraAttributes(User $context) : array<string|int, mixed>
Parameters
- $context : User
Return values
array<string|int, mixed>toArray()
Transform the resource collection into an array.
public
toArray(Request $request) : array<string, mixed>
Parameters
- $request : Request
Tags
Return values
array<string, mixed>getAvatarId()
This method shall be removed from version 5.2 Temporary solution for mobile app to avoid crash.
protected
getAvatarId(User $context, User|null $user) : int|null
Parameters
Tags
Return values
int|nullgetStatistic()
protected
getStatistic() : array<string, mixed>
Tags
Return values
array<string, mixed>isBlocked()
protected
isBlocked() : bool