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}";
    }
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}";
    }
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}" ; }
Return the instance of the class for this target.

@param   step    $step       The step.
@return  target              The target instance.
Return the instance of the class for this target .