original_string: protected function get_processed_analysables(): array {
          global $DB;
  
          $params = array('modelid' => $this->analyser->get_modelid());
          $params['action'] = ($this->includetarget) ? 'training' : 'prediction';
          $select = 'modelid = :modelid and action = :action';
  
          // Weird select fields ordering for performance (analysableid key matching, analysableid is also unique by modelid).
          return $DB->get_records_select('analytics_used_analysables', $select,
              $params, 'timeanalysed DESC', 'analysableid, modelid, action, firstanalysis, timeanalysed, id AS primarykey');
      }
code: protected function get_processed_analysables(): array {
          global $DB;
  
          $params = array('modelid' => $this->analyser->get_modelid());
          $params['action'] = ($this->includetarget) ? 'training' : 'prediction';
          $select = 'modelid = :modelid and action = :action';
  
          // Weird select fields ordering for performance (analysableid key matching, analysableid is also unique by modelid).
          return $DB->get_records_select('analytics_used_analysables', $select,
              $params, 'timeanalysed DESC', 'analysableid, modelid, action, firstanalysis, timeanalysed, id AS primarykey');
      }
code_tokens: protected function get_processed_analysables ( ) : array { global $ DB ; $ params = array ( 'modelid' => $ this -> analyser -> get_modelid ( ) ) ; $ params [ 'action' ] = ( $ this -> includetarget ) ? 'training' : 'prediction' ; $ select = 'modelid = :modelid and action = :action' ; // Weird select fields ordering for performance (analysableid key matching, analysableid is also unique by modelid). return $ DB -> get_records_select ( 'analytics_used_analysables' , $ select , $ params , 'timeanalysed DESC' , 'analysableid, modelid, action, firstanalysis, timeanalysed, id AS primarykey' ) ; }
docstring: Get analysables that have been already processed.
  
  @return \stdClass[]
docstring_tokens: Get analysables that have been already processed .