original_string: protected function get_message_with_additional_content($processorname, $messagetype) {
          $message = $this->$messagetype;
          if (isset($this->additionalcontent[$processorname]['*'])) {
              // Content that needs to be added to all format.
              $pattern = $this->additionalcontent[$processorname]['*'];
              $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
              $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
          }
  
          if (isset($this->additionalcontent[$processorname][$messagetype])) {
              // Content that needs to be added to the specific given format.
              $pattern = $this->additionalcontent[$processorname][$messagetype];
              $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
              $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
          }
  
          return $message;
      }
code: protected function get_message_with_additional_content($processorname, $messagetype) {
          $message = $this->$messagetype;
          if (isset($this->additionalcontent[$processorname]['*'])) {
              // Content that needs to be added to all format.
              $pattern = $this->additionalcontent[$processorname]['*'];
              $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
              $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
          }
  
          if (isset($this->additionalcontent[$processorname][$messagetype])) {
              // Content that needs to be added to the specific given format.
              $pattern = $this->additionalcontent[$processorname][$messagetype];
              $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
              $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
          }
  
          return $message;
      }
code_tokens: protected function get_message_with_additional_content ( $ processorname , $ messagetype ) { $ message = $ this -> $ messagetype ; if ( isset ( $ this -> additionalcontent [ $ processorname ] [ '*' ] ) ) { // Content that needs to be added to all format. $ pattern = $ this -> additionalcontent [ $ processorname ] [ '*' ] ; $ message = empty ( $ pattern [ 'header' ] ) ? $ message : $ pattern [ 'header' ] . $ message ; $ message = empty ( $ pattern [ 'footer' ] ) ? $ message : $ message . $ pattern [ 'footer' ] ; } if ( isset ( $ this -> additionalcontent [ $ processorname ] [ $ messagetype ] ) ) { // Content that needs to be added to the specific given format. $ pattern = $ this -> additionalcontent [ $ processorname ] [ $ messagetype ] ; $ message = empty ( $ pattern [ 'header' ] ) ? $ message : $ pattern [ 'header' ] . $ message ; $ message = empty ( $ pattern [ 'footer' ] ) ? $ message : $ message . $ pattern [ 'footer' ] ; } return $ message ; }
docstring: Helper method used to get message content added with processor specific content.
  
  @param string $processorname Name of the processor.
  @param string $messagetype one of 'fullmessagehtml', 'fullmessage', 'smallmessage'.
  
  @return mixed|string
docstring_tokens: Helper method used to get message content added with processor specific content .