Bean
INSTANCE_TYPE_SINGLETON = 'singleton'
单例模式
INSTANCE_TYPE_EACH_NEW = 'eachNew'
每次实例化
$name : string
Bean名称,留空则为当前类名(包含完整命名空间)
$instanceType : string
实例化类型,默认为单例模式
$defaultFieldName : string
只传一个参数时的参数名
$data : array
数据
__construct( $data)
offsetGet( $offset)
__wakeup()
offsetExists( $offset)
offsetSet( $offset, $value)
offsetUnset( $offset)
current()
key()
next()
rewind()
valid()
__set( $name, $value)
__get( $name)
__isset( $name)
__unset( $name)
toArray() : array
将当前对象作为数组返回
jsonSerialize() : array
json 序列化