class User extends AbstractUser

Properties

mixed $id

The unique identifier for the user.

from  AbstractUser
string|null $nickname

The user's nickname / username.

from  AbstractUser
string|null $name

The user's full name.

from  AbstractUser
string|null $email

The user's e-mail address.

from  AbstractUser
string|null $avatar

The user's avatar image URL.

from  AbstractUser
array $user

The user's raw attributes.

from  AbstractUser
array $attributes

The user's other attributes.

from  AbstractUser
string|null $token

The user's access token.

string|null $refreshToken

The refresh token that can be exchanged for a new access token.

int|null $expiresIn

The number of seconds the access token is valid for.

array $approvedScopes

The scopes the user authorized. The approved scopes may be a subset of the requested scopes.

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.

setToken(string|null $token)

Set the token on the user.

setRefreshToken(string|null $refreshToken)

Set the refresh token required to obtain a new access token.

setExpiresIn(int|null $expiresIn)

Set the number of seconds the access token is valid for.

setApprovedScopes(array $approvedScopes)

Set the scopes that were approved by the user during authentication.

Details

in AbstractUser at line 50
mixed getId()

Get the unique identifier for the user.

Return Value

mixed

in AbstractUser at line 58
string|null getNickname()

Get the nickname / username for the user.

Return Value

string|null

in AbstractUser at line 66
string|null getName()

Get the full name of the user.

Return Value

string|null

in AbstractUser at line 74
string|null getEmail()

Get the e-mail address of the user.

Return Value

string|null

in AbstractUser at line 82
string|null getAvatar()

Get the avatar / image URL for the user.

Return Value

string|null

in AbstractUser at line 90
array getRaw()

Get the raw user array.

Return Value

array

in AbstractUser at line 98
AbstractUser setRaw(array $user)

Set the raw user array from the provider.

Parameters

array $user

Return Value

AbstractUser

in AbstractUser at line 108
AbstractUser map(array $attributes)

Map the given array onto the user's properties.

Parameters

array $attributes

Return Value

AbstractUser

in AbstractUser at line 124
bool offsetExists(mixed $offset)

Determine if the given raw user attribute exists.

Parameters

mixed $offset

Return Value

bool

in AbstractUser at line 132
mixed offsetGet(mixed $offset)

Get the given key from the raw user.

Parameters

mixed $offset

Return Value

mixed

in AbstractUser 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

in AbstractUser at line 148
void offsetUnset(mixed $offset)

Unset the given value from the raw user array.

Parameters

mixed $offset

Return Value

void

in AbstractUser at line 156
mixed __get(string $key)

Get a user attribute value dynamically.

Parameters

string $key

Return Value

mixed

at line 34
User setToken(string|null $token)

Set the token on the user.

Parameters

string|null $token

Return Value

User

at line 44
User setRefreshToken(string|null $refreshToken)

Set the refresh token required to obtain a new access token.

Parameters

string|null $refreshToken

Return Value

User

at line 54
User setExpiresIn(int|null $expiresIn)

Set the number of seconds the access token is valid for.

Parameters

int|null $expiresIn

Return Value

User

at line 64
User setApprovedScopes(array $approvedScopes)

Set the scopes that were approved by the user during authentication.

Parameters

array $approvedScopes

Return Value

User