You are here

public function CounterInterface::decrement in Purge 8.3

Decrease the counter.

Parameters

int|float $amount: Numeric amount to subtract from the current counter value.

Throws

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

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

1 method overrides CounterInterface::decrement()
Counter::decrement in src/Counter/Counter.php
Decrease the counter.

File

src/Counter/CounterInterface.php, line 94

Class

CounterInterface
Describes a numeric counter.

Namespace

Drupal\purge\Counter

Code

public function decrement($amount = 1.0);