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