src/Krucas/Counter/Counter.php
protected function removeForPeriod($key, \DatePeriod $period)
    {
        $ranges = $this->getRanges($period);

        if (count($ranges) > 0) {
            foreach ($ranges as $range) {
                $range instanceof DateRange
                    ? $this->repository->removeForRange($key, $range->getStartDate(), $range->getEndDate())
                    : $this->repository->removeFor($key, $range);
            }
        }
    }
protected function removeForPeriod($key, \DatePeriod $period)
    {
        $ranges = $this->getRanges($period);

        if (count($ranges) > 0) {
            foreach ($ranges as $range) {
                $range instanceof DateRange
                    ? $this->repository->removeForRange($key, $range->getStartDate(), $range->getEndDate())
                    : $this->repository->removeFor($key, $range);
            }
        }
    }
protected function removeForPeriod ( $ key , \ DatePeriod $ period ) { $ ranges = $ this -> getRanges ( $ period ) ; if ( count ( $ ranges ) > 0 ) { foreach ( $ ranges as $ range ) { $ range instanceof DateRange ? $ this -> repository -> removeForRange ( $ key , $ range -> getStartDate ( ) , $ range -> getEndDate ( ) ) : $ this -> repository -> removeFor ( $ key , $ range ) ; } } }
Remove value for a given period.

@param string $key Counter key.
@param \DatePeriod $period Date period.
@return void
Remove value for a given period .