Internals2/counter/counter-class-Phpdoc专题
简介
表示一个独立的计数器对象。
类摘要
Counter
class Counter {
__construct ( <span
class="methodparam">string $name [,
integer
$initial_value [, <span
class="type">integer $flags ]] )
integer <span class="methodname">getValue ( <span class="methodparam">void )
void bumpValue
( integer
$offset )
void <span class="methodname">resetValue ( <span class="methodparam">void )
mixed getMeta
( integer
$attribute )
static Counter
getNamed ( <span
class="methodparam">string $name )
static void
setCounterClass ( <span
class="methodparam">string $name )
}
目录
- Counter::__construct — 创建一个包含单一数值的计数器实例。
- Counter::getValue — 获取计数器的当前值。
- Counter::bumpValue — 修改计数器的当前值。
- Counter::resetValue — 重置计数器的当前值。
- Counter::getMeta — 返回计数器的部分元信息。
- Counter::getNamed — 取回一个名称已存在的计数器。
- Counter::setCounterClass — 设置由 Counter::getNamed 返回的计数器类。