original_string: public function setMessage($type, $content)
      {
          $message = new \stdClass;
          $message->mt = $type;
          $message->content = $content;
          $messages = $this->session()->get('messages', array());
          $messages[] = $message;
          $this->session()->set('messages', $messages);
      }
code: public function setMessage($type, $content)
      {
          $message = new \stdClass;
          $message->mt = $type;
          $message->content = $content;
          $messages = $this->session()->get('messages', array());
          $messages[] = $message;
          $this->session()->set('messages', $messages);
      }
code_tokens: public function setMessage ( $ type , $ content ) { $ message = new \ stdClass ; $ message -> mt = $ type ; $ message -> content = $ content ; $ messages = $ this -> session ( ) -> get ( 'messages' , array ( ) ) ; $ messages [ ] = $ message ; $ this -> session ( ) -> set ( 'messages' , $ messages ) ; }
docstring: Sets a user message to present after reload or redirect.
  
  @param $type
  @param $content
docstring_tokens: Sets a user message to present after reload or redirect .