original_string: protected function addStatusMessage($type, $messages)
      {
          if (!is_array($messages)) {
              $messages = array($messages);
          }
          $this->addData('status', array($type => $messages));
      }
code: protected function addStatusMessage($type, $messages)
      {
          if (!is_array($messages)) {
              $messages = array($messages);
          }
          $this->addData('status', array($type => $messages));
      }
code_tokens: protected function addStatusMessage ( $ type , $ messages ) { if ( ! is_array ( $ messages ) ) { $ messages = array ( $ messages ) ; } $ this -> addData ( 'status' , array ( $ type => $ messages ) ) ; }
docstring: Adds one or more status messages to the response data.
  
  @param string $messages
docstring_tokens: Adds one or more status messages to the response data .