original_string: protected function createVisionModelFile($database, $configs)
      {
          $tables = $this->getTableList($database);
  
          $database = ucfirst($database);
  
          foreach( $tables as $table )
          {
              (new File)->object
              (
                  'model', 
                  $this->getDatabaseVisionClassName($database, $table),
                  [
                      'path'      => $this->getDatabaseVisionDirectory($database),
                      'namespace' => $this->getDatabaseVisionNamespace($database),
                      'use'       => ['GrandModel'],
                      'extends'   => 'GrandModel',
                      'constants' =>
                      [
                          'table'      => "'".ucfirst($table)."'",
                          'connection' => $this->stringArray($configs)
                      ]
                  ]
              );
          }
      }
code: protected function createVisionModelFile($database, $configs)
      {
          $tables = $this->getTableList($database);
  
          $database = ucfirst($database);
  
          foreach( $tables as $table )
          {
              (new File)->object
              (
                  'model', 
                  $this->getDatabaseVisionClassName($database, $table),
                  [
                      'path'      => $this->getDatabaseVisionDirectory($database),
                      'namespace' => $this->getDatabaseVisionNamespace($database),
                      'use'       => ['GrandModel'],
                      'extends'   => 'GrandModel',
                      'constants' =>
                      [
                          'table'      => "'".ucfirst($table)."'",
                          'connection' => $this->stringArray($configs)
                      ]
                  ]
              );
          }
      }
code_tokens: protected function createVisionModelFile ( $ database , $ configs ) { $ tables = $ this -> getTableList ( $ database ) ; $ database = ucfirst ( $ database ) ; foreach ( $ tables as $ table ) { ( new File ) -> object ( 'model' , $ this -> getDatabaseVisionClassName ( $ database , $ table ) , [ 'path' => $ this -> getDatabaseVisionDirectory ( $ database ) , 'namespace' => $ this -> getDatabaseVisionNamespace ( $ database ) , 'use' => [ 'GrandModel' ] , 'extends' => 'GrandModel' , 'constants' => [ 'table' => "'" . ucfirst ( $ table ) . "'" , 'connection' => $ this -> stringArray ( $ configs ) ] ] ) ; } }
docstring: Protected create vision model file
docstring_tokens: Protected create vision model file