Factory/TableFactory.php
protected function createBuilder(ResolvedType $type, array $options)
    {
        $builder = new TableBuilder($type, $this, $options);
        $extensions = $this->getExtensionsForType($type);

        // Extensions build pass
        foreach ($extensions as $extension) {
            $extension->buildTable($builder, $options);
        }

        // And build the fields
        $type->buildTable($builder, $options);

        // Extensions build pass
        foreach ($extensions as $extension) {
            $extension->finishTable($builder, $options);
        }

        return $builder;
    }
protected function createBuilder(ResolvedType $type, array $options)
    {
        $builder = new TableBuilder($type, $this, $options);
        $extensions = $this->getExtensionsForType($type);

        // Extensions build pass
        foreach ($extensions as $extension) {
            $extension->buildTable($builder, $options);
        }

        // And build the fields
        $type->buildTable($builder, $options);

        // Extensions build pass
        foreach ($extensions as $extension) {
            $extension->finishTable($builder, $options);
        }

        return $builder;
    }
protected function createBuilder ( ResolvedType $ type , array $ options ) { $ builder = new TableBuilder ( $ type , $ this , $ options ) ; $ extensions = $ this -> getExtensionsForType ( $ type ) ; // Extensions build pass foreach ( $ extensions as $ extension ) { $ extension -> buildTable ( $ builder , $ options ) ; } // And build the fields $ type -> buildTable ( $ builder , $ options ) ; // Extensions build pass foreach ( $ extensions as $ extension ) { $ extension -> finishTable ( $ builder , $ options ) ; } return $ builder ; }
Creates the table builder for a table type.

@param ResolvedType $type
@param array $options
@return TableBuilder
Creates the table builder for a table type .