src/Krucas/Counter/Counter.php
public function set($key, $value, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            $this->repository->set($key, $value);
        } else {
            $this->setForPeriod($key, $value, $period);
        }
    }
public function set($key, $value, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            $this->repository->set($key, $value);
        } else {
            $this->setForPeriod($key, $value, $period);
        }
    }
public function set ( $ key , $ value , \ DatePeriod $ period = null ) { if ( is_null ( $ period ) ) { $ this -> repository -> set ( $ key , $ value ) ; } else { $ this -> setForPeriod ( $ key , $ value , $ period ) ; } }
Set value for a key.

@param string $key Counter key.
@param float|int $value Value to set.
@param \DatePeriod $period Date period.
@return void
Set value for a key .