public function build(array $schemaDesc): Schema
    {
        $this->schemaDesc = $schemaDesc;
        $schema = new Schema();
        foreach ($schemaDesc['tables'] as $name => $tableDesc) {
            $table = $schema->createTable($name);
            $this->buildTable($tableDesc, $table);
        }
        return $schema;
    }
public function build(array $schemaDesc): Schema
    {
        $this->schemaDesc = $schemaDesc;
        $schema = new Schema();
        foreach ($schemaDesc['tables'] as $name => $tableDesc) {
            $table = $schema->createTable($name);
            $this->buildTable($tableDesc, $table);
        }
        return $schema;
    }
public function build ( array $ schemaDesc ) : Schema { $ this -> schemaDesc = $ schemaDesc ; $ schema = new Schema ( ) ; foreach ( $ schemaDesc [ 'tables' ] as $ name => $ tableDesc ) { $ table = $ schema -> createTable ( $ name ) ; $ this -> buildTable ( $ tableDesc , $ table ) ; } return $ schema ; }
Build an array descriptor into a Schema object
@param array $schemaDesc
@return Schema
Build an array descriptor into a Schema object