public function isNotice($set = false) { if ($set) { $this->setNumber(Message::NOTICE); } return $this->getNumber() === Message::NOTICE; }