ManaPHP\Counter\AdapterInterface::increment PHP Метод

increment() публичный Метод

public increment ( string $type, string $id, integer $step = 1 ) : integer
$type string
$id string
$step integer
Результат integer
    public function increment($type, $id, $step = 1);

Usage Example

Пример #1
0
 /**
  * Decrements the value of key by a given step.
  *
  * @param string $type
  * @param string $id
  * @param int    $step
  *
  * @return int the new value
  */
 public function decrement($type, $id, $step = 1)
 {
     return $this->adapter->increment($this->_prefix . $type, $id, -$step);
 }