src/ErrorHandler/ErrorEmailer.php
protected function throttleDataSet(Event $error)
    {
        $tsNow = \time();
        $hash = $error['hash'];
        $tsCutoff = $tsNow - $this->cfg['emailMin'] * 60;
        if ($error['stats']['tsEmailed'] > $tsCutoff) {
            // This error was recently emailed
            $this->throttleData['errors'][$hash]['countSince']++;
        } else {
            // hasn't been emailed recently
            $this->throttleData['errors'][$hash] = array(
                'file'       => $error['file'],
                'line'       => $error['line'],
                'errType'    => $error['type'],
                'errMsg'     => $error['message'],
                'tsEmailed'  => $tsNow,
                'emailedTo'  => $this->cfg['emailTo'],
                'countSince' => 0,
            );
        }
        if (empty($this->errTypes)) {
            $this->errTypes = $error->getSubject()->get('errTypes');
        }
        return $this->throttleDataWrite();
    }
protected function throttleDataSet(Event $error)
    {
        $tsNow = \time();
        $hash = $error['hash'];
        $tsCutoff = $tsNow - $this->cfg['emailMin'] * 60;
        if ($error['stats']['tsEmailed'] > $tsCutoff) {
            // This error was recently emailed
            $this->throttleData['errors'][$hash]['countSince']++;
        } else {
            // hasn't been emailed recently
            $this->throttleData['errors'][$hash] = array(
                'file'       => $error['file'],
                'line'       => $error['line'],
                'errType'    => $error['type'],
                'errMsg'     => $error['message'],
                'tsEmailed'  => $tsNow,
                'emailedTo'  => $this->cfg['emailTo'],
                'countSince' => 0,
            );
        }
        if (empty($this->errTypes)) {
            $this->errTypes = $error->getSubject()->get('errTypes');
        }
        return $this->throttleDataWrite();
    }
Adds/Updates this error's throttle data

@param Event $error error event

@return boolean