/** * Sends the message to the database layer * @param message string representation of message * @return boolean if succeeded or not */ public function send(MessageModel $msg) { $message = $msg->getName(); $text = $msg->getMessage(); return $this->dal->insertMessage($message, $text); }