Properties

$attributes

$attributes : array

Type

array

Methods

getAttributes()

getAttributes() : array

Return the attributes.

Returns

array

getAttribute()

getAttribute(string  $name, string  $default = null) : mixed

Return the extra attribute.

Parameters

string $name
string $default

Returns

mixed

setAttribute()

setAttribute(string  $name, mixed  $value) : $this

Set extra attributes.

Parameters

string $name
mixed $value

Returns

$this

merge()

merge(array  $attributes) : $this

Map the given array onto the user's properties.

Parameters

array $attributes

Returns

$this

offsetExists()

offsetExists(  $offset) 

{@inheritdoc}

Parameters

$offset

offsetGet()

offsetGet(  $offset) 

{@inheritdoc}

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

{@inheritdoc}

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

{@inheritdoc}

Parameters

$offset

__get()

__get(  $property) 

{@inheritdoc}

Parameters

$property

toArray()

toArray() : array

Return array.

Returns

array

toJSON()

toJSON() : string

Return JSON.

Returns

string

__construct()

__construct(array  $attributes) 

User constructor.

Parameters

array $attributes

getId()

getId() : string

Get the unique identifier for the user.

Returns

string

getUsername()

getUsername() : string

Get the username for the user.

Returns

string

getNickname()

getNickname() : string

Get the nickname / username for the user.

Returns

string

getName()

getName() : string

Get the full name of the user.

Returns

string

getEmail()

getEmail() : string

Get the e-mail address of the user.

Returns

string

getAvatar()

getAvatar() : string

Get the avatar / image URL for the user.

Returns

string

setProviderName()

setProviderName(string  $provider) : $this

Parameters

string $provider

Returns

$this

getProviderName()

getProviderName() : string

Returns

string

getOriginal()

getOriginal() : array

Get the original attributes.

Returns

array

jsonSerialize()

jsonSerialize() 

{@inheritdoc}