public function AcquiaPurgeStateCounter::increase in Acquia Purge 7
Increase the counter.
Parameters
int $amount: Numeric amount to increase the counter with.
Overrides AcquiaPurgeStateCounterInterface::increase
File
- lib/
state/ AcquiaPurgeStateCounter.php, line 36 - Contains AcquiaPurgeStateCounter.
Class
- AcquiaPurgeStateCounter
- Provides a single counter kept in state storage.
Code
public function increase($amount = 1) {
if (!is_int($amount)) {
$amount = (int) $amount;
}
$this
->set($this->value + $amount);
}