original_string: public static function get_target_type(step $step) {
          if (!isset(self::$mapping[$step->get_targettype()])) {
              throw new \moodle_exception('Unknown Target type');
          }
  
          $targettype = self::$mapping[$step->get_targettype()];
          return "\\tool_usertours\\local\\target\\{$targettype}";
      }
code: public static function get_target_type(step $step) {
          if (!isset(self::$mapping[$step->get_targettype()])) {
              throw new \moodle_exception('Unknown Target type');
          }
  
          $targettype = self::$mapping[$step->get_targettype()];
          return "\\tool_usertours\\local\\target\\{$targettype}";
      }
code_tokens: public static function get_target_type ( step $ step ) { if ( ! isset ( self :: $ mapping [ $ step -> get_targettype ( ) ] ) ) { throw new \ moodle_exception ( 'Unknown Target type' ) ; } $ targettype = self :: $ mapping [ $ step -> get_targettype ( ) ] ; return "\\tool_usertours\\local\\target\\{$targettype}" ; }
docstring: Return the instance of the class for this target.
  
  @param   step    $step       The step.
  @return  target              The target instance.
docstring_tokens: Return the instance of the class for this target .