PHP Class Overtrue\Socialite\Config

Inheritance: implements ArrayAcces\ArrayAccess
Show file Open project: overtrue/socialite Class Usage Examples

Protected Properties

Property Type Description
$config array

Public Methods

Method Description
__construct ( array $config ) Config constructor.
get ( string $key, mixed $default = null ) : mixed Get an item from an array using "dot" notation.
offsetExists ( mixed $offset ) : boolean Whether a offset exists.
offsetGet ( mixed $offset ) : mixed Offset to retrieve.
offsetSet ( mixed $offset, mixed $value ) Offset to set.
offsetUnset ( mixed $offset ) Offset to unset.
set ( string $key, mixed $value ) : array Set an array item to a given value using "dot" notation.

Method Details

__construct() public method

Config constructor.
public __construct ( array $config )
$config array

get() public method

Get an item from an array using "dot" notation.
public get ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
return mixed

offsetExists() public method

Whether a offset exists.
public offsetExists ( mixed $offset ) : boolean
$offset mixed

An offset to check for.

return boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned

offsetGet() public method

Offset to retrieve.
public offsetGet ( mixed $offset ) : mixed
$offset mixed

The offset to retrieve.

return mixed Can return all value types

offsetSet() public method

Offset to set.
public offsetSet ( mixed $offset, mixed $value )
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

offsetUnset() public method

Offset to unset.
public offsetUnset ( mixed $offset )
$offset mixed

The offset to unset.

set() public method

Set an array item to a given value using "dot" notation.
public set ( string $key, mixed $value ) : array
$key string
$value mixed
return array

Property Details

$config protected property

protected array $config
return array