abstract class AbstractUser implements ArrayAccess, User

Properties

mixed $id

The unique identifier for the user.

string|null $nickname

The user's nickname / username.

string|null $name

The user's full name.

string|null $email

The user's e-mail address.

string|null $avatar

The user's avatar image URL.

array $user

The user's raw attributes.

array $attributes

The user's other attributes.

Methods

mixed
getId()

Get the unique identifier for the user.

string|null
getNickname()

Get the nickname / username for the user.

string|null
getName()

Get the full name of the user.

string|null
getEmail()

Get the e-mail address of the user.

string|null
getAvatar()

Get the avatar / image URL for the user.

array
getRaw()

Get the raw user array.

setRaw(array $user)

Set the raw user array from the provider.

map(array $attributes)

Map the given array onto the user's properties.

bool
offsetExists(mixed $offset)

Determine if the given raw user attribute exists.

mixed
offsetGet(mixed $offset)

Get the given key from the raw user.

void
offsetSet(mixed $offset, mixed $value)

Set the given attribute on the raw user array.

void
offsetUnset(mixed $offset)

Unset the given value from the raw user array.

mixed
__get(string $key)

Get a user attribute value dynamically.

Details

at line 50
mixed getId()

Get the unique identifier for the user.

Return Value

mixed

at line 58
string|null getNickname()

Get the nickname / username for the user.

Return Value

string|null

at line 66
string|null getName()

Get the full name of the user.

Return Value

string|null

at line 74
string|null getEmail()

Get the e-mail address of the user.

Return Value

string|null

at line 82
string|null getAvatar()

Get the avatar / image URL for the user.

Return Value

string|null

at line 90
array getRaw()

Get the raw user array.

Return Value

array

at line 98
AbstractUser setRaw(array $user)

Set the raw user array from the provider.

Parameters

array $user

Return Value

AbstractUser

at line 108
AbstractUser map(array $attributes)

Map the given array onto the user's properties.

Parameters

array $attributes

Return Value

AbstractUser

at line 124
bool offsetExists(mixed $offset)

Determine if the given raw user attribute exists.

Parameters

mixed $offset

Return Value

bool

at line 132
mixed offsetGet(mixed $offset)

Get the given key from the raw user.

Parameters

mixed $offset

Return Value

mixed

at line 140
void offsetSet(mixed $offset, mixed $value)

Set the given attribute on the raw user array.

Parameters

mixed $offset
mixed $value

Return Value

void

at line 148
void offsetUnset(mixed $offset)

Unset the given value from the raw user array.

Parameters

mixed $offset

Return Value

void

at line 156
mixed __get(string $key)

Get a user attribute value dynamically.

Parameters

string $key

Return Value

mixed