original_string: public function get_mform_set_data() {
          if (!empty($this->rule)) {
              $rule = fullclone($this->rule);
              $rule->description = array('text' => $rule->description, 'format' => $rule->descriptionformat);
              $rule->template = array('text' => $rule->template, 'format' => $rule->templateformat);
              return $rule;
          }
          throw new \coding_exception('Invalid call to get_mform_set_data.');
      }
code: public function get_mform_set_data() {
          if (!empty($this->rule)) {
              $rule = fullclone($this->rule);
              $rule->description = array('text' => $rule->description, 'format' => $rule->descriptionformat);
              $rule->template = array('text' => $rule->template, 'format' => $rule->templateformat);
              return $rule;
          }
          throw new \coding_exception('Invalid call to get_mform_set_data.');
      }
code_tokens: public function get_mform_set_data ( ) { if ( ! empty ( $ this -> rule ) ) { $ rule = fullclone ( $ this -> rule ) ; $ rule -> description = array ( 'text' => $ rule -> description , 'format' => $ rule -> descriptionformat ) ; $ rule -> template = array ( 'text' => $ rule -> template , 'format' => $ rule -> templateformat ) ; return $ rule ; } throw new \ coding_exception ( 'Invalid call to get_mform_set_data.' ) ; }
docstring: Return the rule data to be used while setting mform.
  
  @throws \coding_exception
docstring_tokens: Return the rule data to be used while setting mform .