original_string: public function get_forum_exporter(
          stdClass $user,
          forum_entity $forum,
          ?int $currentgroup
      ) : forum_exporter {
          return new forum_exporter($forum, [
              'legacydatamapperfactory' => $this->legacydatamapperfactory,
              'capabilitymanager' => $this->managerfactory->get_capability_manager($forum),
              'urlfactory' => $this->urlfactory,
              'user' => $user,
              'currentgroup' => $currentgroup,
              'vaultfactory' => $this->vaultfactory,
          ]);
      }
code: public function get_forum_exporter(
          stdClass $user,
          forum_entity $forum,
          ?int $currentgroup
      ) : forum_exporter {
          return new forum_exporter($forum, [
              'legacydatamapperfactory' => $this->legacydatamapperfactory,
              'capabilitymanager' => $this->managerfactory->get_capability_manager($forum),
              'urlfactory' => $this->urlfactory,
              'user' => $user,
              'currentgroup' => $currentgroup,
              'vaultfactory' => $this->vaultfactory,
          ]);
      }
code_tokens: public function get_forum_exporter ( stdClass $ user , forum_entity $ forum , ? int $ currentgroup ) : forum_exporter { return new forum_exporter ( $ forum , [ 'legacydatamapperfactory' => $ this -> legacydatamapperfactory , 'capabilitymanager' => $ this -> managerfactory -> get_capability_manager ( $ forum ) , 'urlfactory' => $ this -> urlfactory , 'user' => $ user , 'currentgroup' => $ currentgroup , 'vaultfactory' => $ this -> vaultfactory , ] ) ; }
docstring: Construct a new forum exporter for the specified user and forum.
  
  @param   stdClass        $user The user viewing the forum
  @param   forum_entity    $forum The forum being viewed
  @param   int             $currentgroup The group currently being viewed
  @return  forum_exporter
docstring_tokens: Construct a new forum exporter for the specified user and forum .