protected function handleError($code, $msg) { if (isset($this->options['error_handler'])) { $handler = $this->options['error_handler']; $handler($code, $msg); } if ($this->debug()) { error_log("[Analytics][" . $this->type . "] " . $msg); } }