/** * Creates a new Message instance. * * @return \ohanspace\sms\OutgoingMessage */ protected function createOutgoingMessage() { $message = new OutgoingMessage(); //If a from address is set, pass it along to the message class. if (isset($this->from)) { $message->from($this->from); } return $message; }