MetaFox

UserInfo extends JsonResource
in package
Uses UserLocationTrait

Class User.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$resource  : User

Methods

canViewLocation()  : bool
getLocation()  : array<string, mixed>
getLocationValue()  : string
toArray()  : array<string, mixed>
Transform the resource collection into an array.
getBasicInfo()  : array<string, mixed>
getProfileSettings()  : mixed

Properties

Methods

getLocation()

public getLocation(User $context, User $resource) : array<string, mixed>
Parameters
$context : User
$resource : User
Return values
array<string, mixed>

getLocationValue()

public getLocationValue(User $context, mixed $resource) : string
Parameters
$context : User
$resource : mixed
Return values
string

toArray()

Transform the resource collection into an array.

public toArray(Request $request) : array<string, mixed>
Parameters
$request : Request
Tags
SuppressWarnings

(PHPMD.ExcessiveMethodLength)

Return values
array<string, mixed>

getBasicInfo()

protected getBasicInfo(UserProfile $profile) : array<string, mixed>
Parameters
$profile : UserProfile
Return values
array<string, mixed>

getProfileSettings()

protected getProfileSettings() : mixed

        
On this page

Search results