src/Krucas/Counter/Counter.php
public function get($key, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            return new Value($this->repository->get($key));
        }

        return $this->getForPeriod($key, $period);
    }
public function get($key, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            return new Value($this->repository->get($key));
        }

        return $this->getForPeriod($key, $period);
    }
public function get ( $ key , \ DatePeriod $ period = null ) { if ( is_null ( $ period ) ) { return new Value ( $ this -> repository -> get ( $ key ) ) ; } return $ this -> getForPeriod ( $ key , $ period ) ; }
Get value for a key.

@param string $key Counter key.
@param \DatePeriod $period Date period.
@return \Krucas\Counter\Contracts\Value|array
Get value for a key .