class Account extends BaseModel (View source)

Properties

protected array $data Model Data from BaseModel
protected string $account_id Account ID
protected array $name User name details
protected string $email Account Email
protected boolean $email_verified Whether the user has verified their e-mail address
protected string $profile_photo_url Account Profile Pic URL
protected boolean $disabled Whether the user has been disabled
protected string $country User's two-letter country code
protected string $locale Language of User's account
$referral_link User's referral link
protected boolean $is_paired Indicates whether a work account is linked
protected string $account_type User's account type

Methods

__construct(array $data)

Create a new Account instance

array
getData()

Get the Model data

from BaseModel
mixed
getDataProperty(string $property)

Get Data Property

from BaseModel
mixed|null
__get(string $property)

Handle calls to undefined properties.

from BaseModel
mixed|null
__set(string $property, string $value)

Handle calls to undefined properties.

from BaseModel
string
getAccountId()

Get Account ID

array
getNameDetails()

Get Account User's Name Details

string
getDisplayName()

Get Display name

string
getEmail()

Get Account Email

boolean
emailIsVerified()

Whether account email is verified

string
getProfilePhotoUrl()

Get Profile Pic URL

boolean
isDisabled()

Whether acocunt has been disabled

string
getCountry()

Get User's two-lettered country code

string
getLocale()

Get account language

string
getReferralLink()

Get user's referral link

boolean
isPaired()

Whether work account is paired

string
getAccountType()

Get Account Type

Details

at line line 88
__construct(array $data)

Create a new Account instance

Parameters

array $data

in BaseModel at line line 29
array getData()

Get the Model data

Return Value

array

in BaseModel at line line 41
mixed getDataProperty(string $property)

Get Data Property

Parameters

string $property

Return Value

mixed

in BaseModel at line line 56
mixed|null __get(string $property)

Handle calls to undefined properties.

Check whether an item with the key, same as the property, is available on the data property.

Parameters

string $property

Return Value

mixed|null

in BaseModel at line line 75
mixed|null __set(string $property, string $value)

Handle calls to undefined properties.

Sets an item with the defined value on the data property.

Parameters

string $property
string $value

Return Value

mixed|null

at line line 116
string getAccountId()

Get Account ID

Return Value

string

at line line 126
array getNameDetails()

Get Account User's Name Details

Return Value

array

at line line 136
string getDisplayName()

Get Display name

Return Value

string

at line line 152
string getEmail()

Get Account Email

Return Value

string

at line line 162
boolean emailIsVerified()

Whether account email is verified

Return Value

boolean

at line line 172
string getProfilePhotoUrl()

Get Profile Pic URL

Return Value

string

at line line 182
boolean isDisabled()

Whether acocunt has been disabled

Return Value

boolean

at line line 192
string getCountry()

Get User's two-lettered country code

Return Value

string

at line line 202
string getLocale()

Get account language

Return Value

string

Get user's referral link

Return Value

string

at line line 222
boolean isPaired()

Whether work account is paired

Return Value

boolean

at line line 232
string getAccountType()

Get Account Type

Return Value

string