class GenericUser implements UserInterface (View source)

Properties

protected array $attributes

All of the user's attributes.

Methods

void
__construct(array $attributes)

Create a new generic User object.

mixed
getAuthIdentifier()

Get the unique identifier for the user.

string
getAuthPassword()

Get the password for the user.

string
getRememberToken()

Get the token value for the "remember me" session.

void
setRememberToken(string $value)

Set the token value for the "remember me" session.

string
getRememberTokenName()

Get the column name for the "remember me" token.

mixed
__get(string $key)

Dynamically access the user's attributes.

void
__set(string $key, mixed $value)

Dynamically set an attribute on the user.

bool
__isset(string $key)

Dynamically check if a value is set on the user.

void
__unset(string $key)

Dynamically unset a value on the user.

Details

void __construct(array $attributes)

Create a new generic User object.

Parameters

array $attributes

Return Value

void

mixed getAuthIdentifier()

Get the unique identifier for the user.

Return Value

mixed

string getAuthPassword()

Get the password for the user.

Return Value

string

string getRememberToken()

Get the token value for the "remember me" session.

Return Value

string

void setRememberToken(string $value)

Set the token value for the "remember me" session.

Parameters

string $value

Return Value

void

string getRememberTokenName()

Get the column name for the "remember me" token.

Return Value

string

mixed __get(string $key)

Dynamically access the user's attributes.

Parameters

string $key

Return Value

mixed

void __set(string $key, mixed $value)

Dynamically set an attribute on the user.

Parameters

string $key
mixed $value

Return Value

void

bool __isset(string $key)

Dynamically check if a value is set on the user.

Parameters

string $key

Return Value

bool

void __unset(string $key)

Dynamically unset a value on the user.

Parameters

string $key

Return Value

void