Beanstalk\
Stats
¶Class Methods
Stats::__construct
– ConstructorStats::getStat
– Get the value of a given statStats::getStats
– Get all the stats as an arrayStats::setStat
– Set a stat to a given valueBeanstalk\Stats::
__construct
([$data = null])¶Description: | Constructor |
---|---|
Parameters: |
|
Beanstalk\Stats::
getStat
($stat)¶Description: | Get the value of a given stat |
---|---|
Parameters: |
|
Returns: | string Stat’s value |
Returns: | boolean false when value not set |
Beanstalk\Stats::
getStats
()¶Description: | Get all the stats as an array |
---|---|
Returns: | array ( ‘stat1-name’ => ‘value’ , ‘stat2-name’ => ‘value’ , ... ) |
Beanstalk\Stats::
setStat
($stat, $value)¶Description: | Set a stat to a given value |
---|---|
Parameters: |
|
Returns: | null |