You are here

public function CounterInterface::set in Purge 8.3

Overwrite the counter value.

Parameters

int|float $value: The new value.

Throws

\Drupal\purge\Plugin\Purge\Purger\Exception\BadBehaviorException Thrown when $value is not a integer, float or when it is negative.

\LogicException Thrown when the object got created without set permission.

1 method overrides CounterInterface::set()
Counter::set in src/Counter/Counter.php
Overwrite the counter value.

File

src/Counter/CounterInterface.php, line 69

Class

CounterInterface
Describes a numeric counter.

Namespace

Drupal\purge\Counter

Code

public function set($value);