PHP Trait Overtrue\Socialite\AttributeTrait

Afficher le fichier Open project: overtrue/socialite

Protected Properties

Свойство Type Description
$attributes array

Méthodes publiques

Méthode Description
__get ( $property )
getAttribute ( string $name, string $default = null ) : mixed Return the extra attribute.
getAttributes ( ) : array Return the attributes.
merge ( array $attributes ) Map the given array onto the user's properties.
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
setAttribute ( string $name, mixed $value ) Set extra attributes.
toArray ( ) : array Return array.
toJSON ( ) : string Return JSON.

Method Details

__get() public méthode

public __get ( $property )

getAttribute() public méthode

Return the extra attribute.
public getAttribute ( string $name, string $default = null ) : mixed
$name string
$default string
Résultat mixed

getAttributes() public méthode

Return the attributes.
public getAttributes ( ) : array
Résultat array

merge() public méthode

Map the given array onto the user's properties.
public merge ( array $attributes )
$attributes array

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset )

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

setAttribute() public méthode

Set extra attributes.
public setAttribute ( string $name, mixed $value )
$name string
$value mixed

toArray() public méthode

Return array.
public toArray ( ) : array
Résultat array

toJSON() public méthode

Return JSON.
public toJSON ( ) : string
Résultat string

Property Details

$attributes protected_oe property

protected array $attributes
Résultat array