src/Krucas/Counter/Counter.php
public function increment($key, $value, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            $this->repository->increment($key, $value);
        } else {
            $this->incrementForPeriod($key, $value, $period);
        }
    }
public function increment($key, $value, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            $this->repository->increment($key, $value);
        } else {
            $this->incrementForPeriod($key, $value, $period);
        }
    }
public function increment ( $ key , $ value , \ DatePeriod $ period = null ) { if ( is_null ( $ period ) ) { $ this -> repository -> increment ( $ key , $ value ) ; } else { $ this -> incrementForPeriod ( $ key , $ value , $ period ) ; } }
Increment value.

@param string $key Counter key.
@param float|int $value Increment by value.
@param \DatePeriod $period Date period.
@return void
Increment value .