PHP Class Dumplie\Metadata\Schema\Builder

Show file Open project: dumplie/dumplie Class Usage Examples

Public Methods

Method Description
__construct ( $name = 'dumplie' )
addType ( TypeSchema $schema ) : Builder
build ( ) : Schema
changeName ( string $name ) : Builder
getType ( string $name ) : TypeSchema
hasType ( string $name ) : boolean

Method Details

__construct() public method

public __construct ( $name = 'dumplie' )

addType() public method

public addType ( TypeSchema $schema ) : Builder
$schema TypeSchema
return Builder

build() public method

public build ( ) : Schema
return Dumplie\Metadata\Schema

changeName() public method

public changeName ( string $name ) : Builder
$name string
return Builder

getType() public method

public getType ( string $name ) : TypeSchema
$name string
return TypeSchema

hasType() public method

public hasType ( string $name ) : boolean
$name string
return boolean