public function add($notice, $id = false) { if (!$notice instanceof EditPageNotice) { $notice = new EditPageNotice($notice, $id); } if ($this->isBlacklisted($notice->getMessageId())) { $this->log(__METHOD__ . ' - blacklisted', $notice->getMessageId()); } else { $this->notices[] = $notice; $this->log(__METHOD__ . ' - added', $notice->getHtml()); } }