PHP Interface ManaPHP\CounterInterface

Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Méthode Description
decrement ( string $type, string $id, integer $step = 1 ) : integer Decrements the value of key by a given step.
delete ( string $type, string $id ) : void Deletes the key
get ( string $type, string $id ) : integer
increment ( string $type, string $id, integer $step = 1 ) : integer Increments the value of key by a given step.

Method Details

decrement() public méthode

Decrements the value of key by a given step.
public decrement ( string $type, string $id, integer $step = 1 ) : integer
$type string
$id string
$step integer
Résultat integer the new value

delete() public méthode

Deletes the key
public delete ( string $type, string $id ) : void
$type string
$id string
Résultat void

get() public méthode

public get ( string $type, string $id ) : integer
$type string
$id string
Résultat integer

increment() public méthode

Increments the value of key by a given step.
public increment ( string $type, string $id, integer $step = 1 ) : integer
$type string
$id string
$step integer
Résultat integer the new value