\WeChat\ContractsDataArray

Class DataArray

Summary

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

Properties

$config

$config : array

当前配置值

Type

array

Methods

__construct()

__construct(array  $options) 

Config constructor.

Parameters

array $options

set()

set(string  $offset, string|array|null|integer  $value) 

设置配置项值

Parameters

string $offset
string|array|null|integer $value

get()

get(string|null  $offset = null) : array|string|null

获取配置项参数

Parameters

string|null $offset

Returns

array|string|null

merge()

merge(array  $data, boolean  $append = false) : array

合并数据到对象

Parameters

array $data

需要合并的数据

boolean $append

是否追加数据

Returns

array

offsetSet()

offsetSet(string  $offset, string|array|null|integer  $value) 

设置配置项值

Parameters

string $offset
string|array|null|integer $value

offsetExists()

offsetExists(string  $offset) : boolean

判断配置Key是否存在

Parameters

string $offset

Returns

boolean

offsetUnset()

offsetUnset(string|null  $offset = null) 

清理配置项

Parameters

string|null $offset

offsetGet()

offsetGet(string|null  $offset = null) : array|string|null

获取配置项参数

Parameters

string|null $offset

Returns

array|string|null