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