public function getBeaconsTotal($token, $event, array $dates)
    {
        $total = 0;

        foreach ($dates as $date) {
            $key = $this->generateEntryKey(
                $token,
                $event,
                $date
            );

            $total += $this->doRedisQuery(function () use ($key) {
                $this
                    ->redis
                    ->get($key . '_total');
            }, 0);
        }

        return $total;
    }
public function getBeaconsTotal($token, $event, array $dates)
    {
        $total = 0;

        foreach ($dates as $date) {
            $key = $this->generateEntryKey(
                $token,
                $event,
                $date
            );

            $total += $this->doRedisQuery(function () use ($key) {
                $this
                    ->redis
                    ->get($key . '_total');
            }, 0);
        }

        return $total;
    }
public function getBeaconsTotal ( $ token , $ event , array $ dates ) { $ total = 0 ; foreach ( $ dates as $ date ) { $ key = $ this -> generateEntryKey ( $ token , $ event , $ date ) ; $ total += $ this -> doRedisQuery ( function ( ) use ( $ key ) { $ this -> redis -> get ( $ key . '_total' ) ; } , 0 ) ; } return $ total ; }
Get the total of beacons given an event and a set of dates.

@param string $token Event
@param string $event Token
@param array  $dates Dates

@return int Number of beacons, given an event and dates
Get the total of beacons given an event and a set of dates .