original_string: public function getMessageData($key)
      {
          if ($this->{$key}) {
              return $this->{$key};
          }
  
          $data_key = str_replace(['text_body', 'html_body'], ['txt_path', 'html_path'], $key);
  
          $data = $this->retrieveMessageData($data_key);
  
          if (!$data) {
              return '';
          }
  
          $this->{$key} = $data;
  
          return $data;
      }
code: public function getMessageData($key)
      {
          if ($this->{$key}) {
              return $this->{$key};
          }
  
          $data_key = str_replace(['text_body', 'html_body'], ['txt_path', 'html_path'], $key);
  
          $data = $this->retrieveMessageData($data_key);
  
          if (!$data) {
              return '';
          }
  
          $this->{$key} = $data;
  
          return $data;
      }
code_tokens: public function getMessageData ( $ key ) { if ( $ this -> { $ key } ) { return $ this -> { $ key } ; } $ data_key = str_replace ( [ 'text_body' , 'html_body' ] , [ 'txt_path' , 'html_path' ] , $ key ) ; $ data = $ this -> retrieveMessageData ( $ data_key ) ; if ( ! $ data ) { return '' ; } $ this -> { $ key } = $ data ; return $ data ; }
docstring: Get the body data for a message
  
  @param $key
  
  @return bool|mixed|null|string
docstring_tokens: Get the body data for a message