build() public method

public build ( ) : Schema
return Dumplie\Metadata\Schema
示例#1
0
 public function tearDown()
 {
     $this->storage->drop($this->schemaBuilder->build());
 }
 /**
  * @param string $typeName
  * @return MetadataAccessObject
  * @throws NotFoundException
  */
 public function getMAO(string $typeName) : MetadataAccessObject
 {
     $schema = $this->schemaBuilder->build();
     return new MetadataAccessObject($this->storage, $schema->name(), $schema->get($typeName), $this->hydrator);
 }