\Overtrue\EasySms\SupportConfig

Class Config.

Summary

Methods
Properties
Constants
__construct()
get()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
No public properties found
No constants found
No protected methods found
$config
N/A
No private methods found
No private properties found
N/A

Properties

$config

$config : array

Type

array

Methods

__construct()

__construct(array  $config = []) : mixed

Config constructor.

Parameters

array $config

Returns

mixed —

get()

get(string  $key, mixed  $default = null) : mixed

Get an item from an array using "dot" notation.

Parameters

string $key
mixed $default

Returns

mixed —

offsetExists()

offsetExists(mixed  $offset) : bool

Whether a offset exists.

Parameters

mixed $offset

An offset to check for.

Returns

bool —

true on success or false on failure.

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

offsetGet()

offsetGet(mixed  $offset) : mixed

Offset to retrieve.

Parameters

mixed $offset

The offset to retrieve.

Returns

mixed —

Can return all value types

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : mixed

Offset to set.

Parameters

mixed $offset

The offset to assign the value to.

mixed $value

The value to set.

Returns

mixed —

offsetUnset()

offsetUnset(mixed  $offset) : mixed

Offset to unset.

Parameters

mixed $offset

The offset to unset.

Returns

mixed —