You are here

public function AcquiaPurgeStateCounter::set in Acquia Purge 7

Store the state item in state item storage.

Parameters

mixed $value: The new value.

Overrides AcquiaPurgeStateItem::set

2 calls to AcquiaPurgeStateCounter::set()
AcquiaPurgeStateCounter::decrease in lib/state/AcquiaPurgeStateCounter.php
Decrease the counter.
AcquiaPurgeStateCounter::increase in lib/state/AcquiaPurgeStateCounter.php
Increase the counter.

File

lib/state/AcquiaPurgeStateCounter.php, line 46
Contains AcquiaPurgeStateCounter.

Class

AcquiaPurgeStateCounter
Provides a single counter kept in state storage.

Code

public function set($value) {
  if (!is_int($value)) {
    $value = (int) $value;
  }
  parent::set($value);
}