src/Utils/SchemaNormalizer.php
public function normalize(Schema $schema): array
    {
        $this->schema = $schema;
        $schemaDesc = [];
        $schemaDesc['tables'] = [];
        foreach ($schema->getTables() as $table) {
            $schemaDesc['tables'][$table->getName()] = $this->normalizeTable($table);
        }
        return $schemaDesc;
    }
public function normalize(Schema $schema): array
    {
        $this->schema = $schema;
        $schemaDesc = [];
        $schemaDesc['tables'] = [];
        foreach ($schema->getTables() as $table) {
            $schemaDesc['tables'][$table->getName()] = $this->normalizeTable($table);
        }
        return $schemaDesc;
    }
public function normalize ( Schema $ schema ) : array { $ this -> schema = $ schema ; $ schemaDesc = [ ] ; $ schemaDesc [ 'tables' ] = [ ] ; foreach ( $ schema -> getTables ( ) as $ table ) { $ schemaDesc [ 'tables' ] [ $ table -> getName ( ) ] = $ this -> normalizeTable ( $ table ) ; } return $ schemaDesc ; }
Normalize a Schema object into an array descriptor
@param Schema $schema
@return array
Normalize a Schema object into an array descriptor