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;
    }
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;
    }
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 ; }
Get the body data for a message

@param $key

@return bool|mixed|null|string
Get the body data for a message