original_string: protected function makeModuleInstance(ModelInformationInterface $information)
      {
          $modelClass = $information->modelClass();
  
          $module = new ModelModule(
              app(ModelInformationRepositoryInterface::class),
              $this->moduleHelper,
              app(RouteHelperInterface::class),
              $this->makeModuleKey($modelClass),
              $this->makeModuleName($modelClass)
          );
  
          $module->setAssociatedClass($modelClass);
  
          if ($information->meta->controller) {
              $module->setWebController($information->meta->controller);
          }
  
          if ($information->meta->controller_api) {
              $module->setApiController($information->meta->controller_api);
          }
  
          return $module;
      }
code: protected function makeModuleInstance(ModelInformationInterface $information)
      {
          $modelClass = $information->modelClass();
  
          $module = new ModelModule(
              app(ModelInformationRepositoryInterface::class),
              $this->moduleHelper,
              app(RouteHelperInterface::class),
              $this->makeModuleKey($modelClass),
              $this->makeModuleName($modelClass)
          );
  
          $module->setAssociatedClass($modelClass);
  
          if ($information->meta->controller) {
              $module->setWebController($information->meta->controller);
          }
  
          if ($information->meta->controller_api) {
              $module->setApiController($information->meta->controller_api);
          }
  
          return $module;
      }
code_tokens: protected function makeModuleInstance ( ModelInformationInterface $ information ) { $ modelClass = $ information -> modelClass ( ) ; $ module = new ModelModule ( app ( ModelInformationRepositoryInterface :: class ) , $ this -> moduleHelper , app ( RouteHelperInterface :: class ) , $ this -> makeModuleKey ( $ modelClass ) , $ this -> makeModuleName ( $ modelClass ) ) ; $ module -> setAssociatedClass ( $ modelClass ) ; if ( $ information -> meta -> controller ) { $ module -> setWebController ( $ information -> meta -> controller ) ; } if ( $ information -> meta -> controller_api ) { $ module -> setApiController ( $ information -> meta -> controller_api ) ; } return $ module ; }
docstring: Makes a model module instance for model information.
  
  @param ModelInformationInterface|ModelInformation $information
  @return ModelModule
docstring_tokens: Makes a model module instance for model information .