DumpableInterface
定义对象是否可转储的接口。
| 自 |
1.0 |
|---|---|
| 包 |
Joomla 框架 |
方法
dump
将数据属性转储到对象中,如果需要,则递归进行。
dump( depth = 3, \SplObjectStorage dumped = null) : \stdClass|array
| 自 |
1.0 |
|---|
参数
- depth
int递归的最大深度。例如,深度为 0 将返回一个包含所有属性的原生形式的 stdClass。深度为 1 将仅递归到属性的第一级。- dumped
SplObjectStorage|null已序列化对象的数组,用于避免无限循环。
响应
stdClass|array<string|int, mixed>