public function Counter::__construct in Purge 8.3
Construct a counter object.
Parameters
int|float $value: The initial positive number the counter starts its life with.
Overrides CounterInterface::__construct
3 calls to Counter::__construct()
- TotalFailedStatistic::__construct in src/
Plugin/ Purge/ Queue/ TotalFailedStatistic.php - Construct a counter object.
- TotalNotSupportedStatistic::__construct in src/
Plugin/ Purge/ Queue/ TotalNotSupportedStatistic.php - Construct a counter object.
- TotalSucceededStatistic::__construct in src/
Plugin/ Purge/ Queue/ TotalSucceededStatistic.php - Construct a counter object.
3 methods override Counter::__construct()
- TotalFailedStatistic::__construct in src/
Plugin/ Purge/ Queue/ TotalFailedStatistic.php - Construct a counter object.
- TotalNotSupportedStatistic::__construct in src/
Plugin/ Purge/ Queue/ TotalNotSupportedStatistic.php - Construct a counter object.
- TotalSucceededStatistic::__construct in src/
Plugin/ Purge/ Queue/ TotalSucceededStatistic.php - Construct a counter object.
File
- src/
Counter/ Counter.php, line 50
Class
- Counter
- Provides a numeric counter.
Namespace
Drupal\purge\CounterCode
public function __construct($value = 0.0) {
$this
->set($value);
}