current_scores_list = $current_scores_list; $this->query_time = $query_time; $this->is_cached_used = $is_cached_used; } /** * Return this object represented by a key value array. * * @return array>>|float|bool> Returns the name and if the feature is enabled. */ public function to_array(): array { return [ 'scores' => $this->current_scores_list->to_array(), 'queryTime' => $this->query_time, 'cacheUsed' => $this->is_cached_used, ]; } }