original_string: private static function indicator_classes($indicators) {
  
          // What we want to check and store are the indicator classes not the keys.
          $indicatorclasses = array();
          foreach ($indicators as $indicator) {
              if (!\core_analytics\manager::is_valid($indicator, '\core_analytics\local\indicator\base')) {
                  if (!is_object($indicator) && !is_scalar($indicator)) {
                      $indicator = strval($indicator);
                  } else if (is_object($indicator)) {
                      $indicator = '\\' . get_class($indicator);
                  }
                  throw new \moodle_exception('errorinvalidindicator', 'analytics', '', $indicator);
              }
              $indicatorclasses[] = $indicator->get_id();
          }
  
          return $indicatorclasses;
      }
code: private static function indicator_classes($indicators) {
  
          // What we want to check and store are the indicator classes not the keys.
          $indicatorclasses = array();
          foreach ($indicators as $indicator) {
              if (!\core_analytics\manager::is_valid($indicator, '\core_analytics\local\indicator\base')) {
                  if (!is_object($indicator) && !is_scalar($indicator)) {
                      $indicator = strval($indicator);
                  } else if (is_object($indicator)) {
                      $indicator = '\\' . get_class($indicator);
                  }
                  throw new \moodle_exception('errorinvalidindicator', 'analytics', '', $indicator);
              }
              $indicatorclasses[] = $indicator->get_id();
          }
  
          return $indicatorclasses;
      }
code_tokens: private static function indicator_classes ( $ indicators ) { // What we want to check and store are the indicator classes not the keys. $ indicatorclasses = array ( ) ; foreach ( $ indicators as $ indicator ) { if ( ! \ core_analytics \ manager :: is_valid ( $ indicator , '\core_analytics\local\indicator\base' ) ) { if ( ! is_object ( $ indicator ) && ! is_scalar ( $ indicator ) ) { $ indicator = strval ( $ indicator ) ; } else if ( is_object ( $ indicator ) ) { $ indicator = '\\' . get_class ( $ indicator ) ; } throw new \ moodle_exception ( 'errorinvalidindicator' , 'analytics' , '' , $ indicator ) ; } $ indicatorclasses [ ] = $ indicator -> get_id ( ) ; } return $ indicatorclasses ; }
docstring: Utility method to return indicator class names from a list of indicator objects
  
  @param \core_analytics\local\indicator\base[] $indicators
  @return string[]
docstring_tokens: Utility method to return indicator class names from a list of indicator objects