Dumplie\Metadata\Schema\Builder::build PHP Method

build() public method

public build ( ) : Schema
return Dumplie\Metadata\Schema
    public function build() : Schema
    {
        $schema = new Schema($this->name);
        foreach ($this->types as $type) {
            $schema->add($type);
        }
        return $schema;
    }

Usage Example

示例#1
0
 public function tearDown()
 {
     $this->storage->drop($this->schemaBuilder->build());
 }
All Usage Examples Of Dumplie\Metadata\Schema\Builder::build