original_string: public function to_legacy_objects(array $forums) : array {
          return array_map(function(forum_entity $forum) {
              return (object) [
                  'id' => $forum->get_id(),
                  'course' => $forum->get_course_id(),
                  'type' => $forum->get_type(),
                  'name' => $forum->get_name(),
                  'intro' => $forum->get_intro(),
                  'introformat' => $forum->get_intro_format(),
                  'assessed' => $forum->get_rating_aggregate(),
                  'assesstimestart' => $forum->get_assess_time_start(),
                  'assesstimefinish' => $forum->get_assess_time_finish(),
                  'scale' => $forum->get_scale(),
                  'maxbytes' => $forum->get_max_bytes(),
                  'maxattachments' => $forum->get_max_attachments(),
                  'forcesubscribe' => $forum->get_subscription_mode(),
                  'trackingtype' => $forum->get_tracking_type(),
                  'rsstype' => $forum->get_rss_type(),
                  'rssarticles' => $forum->get_rss_articles(),
                  'timemodified' => $forum->get_time_modified(),
                  'warnafter' => $forum->get_warn_after(),
                  'blockafter' => $forum->get_block_after(),
                  'blockperiod' => $forum->get_block_period(),
                  'completiondiscussions' => $forum->get_completion_discussions(),
                  'completionreplies' => $forum->get_completion_replies(),
                  'completionposts' => $forum->get_completion_posts(),
                  'displaywordcount' => $forum->should_display_word_count(),
                  'lockdiscussionafter' => $forum->get_lock_discussions_after(),
                  'duedate' => $forum->get_due_date(),
                  'cutoffdate' => $forum->get_cutoff_date()
              ];
          }, $forums);
      }
code: public function to_legacy_objects(array $forums) : array {
          return array_map(function(forum_entity $forum) {
              return (object) [
                  'id' => $forum->get_id(),
                  'course' => $forum->get_course_id(),
                  'type' => $forum->get_type(),
                  'name' => $forum->get_name(),
                  'intro' => $forum->get_intro(),
                  'introformat' => $forum->get_intro_format(),
                  'assessed' => $forum->get_rating_aggregate(),
                  'assesstimestart' => $forum->get_assess_time_start(),
                  'assesstimefinish' => $forum->get_assess_time_finish(),
                  'scale' => $forum->get_scale(),
                  'maxbytes' => $forum->get_max_bytes(),
                  'maxattachments' => $forum->get_max_attachments(),
                  'forcesubscribe' => $forum->get_subscription_mode(),
                  'trackingtype' => $forum->get_tracking_type(),
                  'rsstype' => $forum->get_rss_type(),
                  'rssarticles' => $forum->get_rss_articles(),
                  'timemodified' => $forum->get_time_modified(),
                  'warnafter' => $forum->get_warn_after(),
                  'blockafter' => $forum->get_block_after(),
                  'blockperiod' => $forum->get_block_period(),
                  'completiondiscussions' => $forum->get_completion_discussions(),
                  'completionreplies' => $forum->get_completion_replies(),
                  'completionposts' => $forum->get_completion_posts(),
                  'displaywordcount' => $forum->should_display_word_count(),
                  'lockdiscussionafter' => $forum->get_lock_discussions_after(),
                  'duedate' => $forum->get_due_date(),
                  'cutoffdate' => $forum->get_cutoff_date()
              ];
          }, $forums);
      }
code_tokens: public function to_legacy_objects ( array $ forums ) : array { return array_map ( function ( forum_entity $ forum ) { return ( object ) [ 'id' => $ forum -> get_id ( ) , 'course' => $ forum -> get_course_id ( ) , 'type' => $ forum -> get_type ( ) , 'name' => $ forum -> get_name ( ) , 'intro' => $ forum -> get_intro ( ) , 'introformat' => $ forum -> get_intro_format ( ) , 'assessed' => $ forum -> get_rating_aggregate ( ) , 'assesstimestart' => $ forum -> get_assess_time_start ( ) , 'assesstimefinish' => $ forum -> get_assess_time_finish ( ) , 'scale' => $ forum -> get_scale ( ) , 'maxbytes' => $ forum -> get_max_bytes ( ) , 'maxattachments' => $ forum -> get_max_attachments ( ) , 'forcesubscribe' => $ forum -> get_subscription_mode ( ) , 'trackingtype' => $ forum -> get_tracking_type ( ) , 'rsstype' => $ forum -> get_rss_type ( ) , 'rssarticles' => $ forum -> get_rss_articles ( ) , 'timemodified' => $ forum -> get_time_modified ( ) , 'warnafter' => $ forum -> get_warn_after ( ) , 'blockafter' => $ forum -> get_block_after ( ) , 'blockperiod' => $ forum -> get_block_period ( ) , 'completiondiscussions' => $ forum -> get_completion_discussions ( ) , 'completionreplies' => $ forum -> get_completion_replies ( ) , 'completionposts' => $ forum -> get_completion_posts ( ) , 'displaywordcount' => $ forum -> should_display_word_count ( ) , 'lockdiscussionafter' => $ forum -> get_lock_discussions_after ( ) , 'duedate' => $ forum -> get_due_date ( ) , 'cutoffdate' => $ forum -> get_cutoff_date ( ) ] ; } , $ forums ) ; }
docstring: Convert a list of forum entities into stdClasses.
  
  @param forum_entity[] $forums The forums to convert.
  @return stdClass[]
docstring_tokens: Convert a list of forum entities into stdClasses .