PHP Trait Overtrue\Socialite\AttributeTrait

Show file Open project: overtrue/socialite

Protected Properties

Property Type Description
$attributes array

Public Methods

Method 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 method

public __get ( $property )

getAttribute() public method

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

getAttributes() public method

Return the attributes.
public getAttributes ( ) : array
return array

merge() public method

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

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

setAttribute() public method

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

toArray() public method

Return array.
public toArray ( ) : array
return array

toJSON() public method

Return JSON.
public toJSON ( ) : string
return string

Property Details

$attributes protected property

protected array $attributes
return array