You are here

public function CounterInterface::increment in Purge 8.3

Increase the counter.

Parameters

int|float $amount: Numeric amount to add up to the current counter value.

Throws

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

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

1 method overrides CounterInterface::increment()
Counter::increment in src/Counter/Counter.php
Increase the counter.

File

src/Counter/CounterInterface.php, line 107

Class

CounterInterface
Describes a numeric counter.

Namespace

Drupal\purge\Counter

Code

public function increment($amount = 1.0);