original_string: private function generate()
      {
          $schema = [];
  
          foreach ($this->getTables() as $table) {
              $schema[$table] = $this->getTableDefinition($table);
          };
  
          foreach (array_keys($schema) as $table) {
              $constraints = $this->driver->getConstraints($table);
  
              foreach ($constraints as $constraint) {
                  if (false === empty($constraint['REF_TABLE'])) {
                      $schema[$table]['properties'][$constraint['REF_TABLE']] = $this->mapConstraint($constraint);
                  }
              }
          }
  
          return $schema;
      }
code: private function generate()
      {
          $schema = [];
  
          foreach ($this->getTables() as $table) {
              $schema[$table] = $this->getTableDefinition($table);
          };
  
          foreach (array_keys($schema) as $table) {
              $constraints = $this->driver->getConstraints($table);
  
              foreach ($constraints as $constraint) {
                  if (false === empty($constraint['REF_TABLE'])) {
                      $schema[$table]['properties'][$constraint['REF_TABLE']] = $this->mapConstraint($constraint);
                  }
              }
          }
  
          return $schema;
      }
code_tokens: private function generate ( ) { $ schema = [ ] ; foreach ( $ this -> getTables ( ) as $ table ) { $ schema [ $ table ] = $ this -> getTableDefinition ( $ table ) ; } ; foreach ( array_keys ( $ schema ) as $ table ) { $ constraints = $ this -> driver -> getConstraints ( $ table ) ; foreach ( $ constraints as $ constraint ) { if ( false === empty ( $ constraint [ 'REF_TABLE' ] ) ) { $ schema [ $ table ] [ 'properties' ] [ $ constraint [ 'REF_TABLE' ] ] = $ this -> mapConstraint ( $ constraint ) ; } } } return $ schema ; }
docstring: Generate database schema definition
  
  @return array
docstring_tokens: Generate database schema definition