original_string: public final function get_activity_type() {
          $class = get_class($this);
          $package = stristr($class, "\\", true);
          $type = str_replace("mod_", "", $package);
          if ($type === $package) {
              throw new \coding_exception("$class does not belong to any module specific namespace");
          }
          return $type;
      }
code: public final function get_activity_type() {
          $class = get_class($this);
          $package = stristr($class, "\\", true);
          $type = str_replace("mod_", "", $package);
          if ($type === $package) {
              throw new \coding_exception("$class does not belong to any module specific namespace");
          }
          return $type;
      }
code_tokens: public final function get_activity_type ( ) { $ class = get_class ( $ this ) ; $ package = stristr ( $ class , "\\" , true ) ; $ type = str_replace ( "mod_" , "" , $ package ) ; if ( $ type === $ package ) { throw new \ coding_exception ( "$class does not belong to any module specific namespace" ) ; } return $ type ; }
docstring: Returns the activity type. No point in changing this class in children classes.
  
  @var string The activity name (e.g. assign or quiz)
docstring_tokens: Returns the activity type . No point in changing this class in children classes .