PHP Class LeanMapper\Reflection\AliasesBuilder

Author: Vojtěch Kohout
Show file Open project: tharos/leanmapper Class Usage Examples

Public Methods

Method Description
appendToCurrent ( string $name ) Appends name to current definition
finishCurrent ( ) Finishes building of current definition and begins to build new one
getAliases ( string $namespace = '' ) : Aliases Creates new Aliases instance
resetCurrent ( ) Sets current definition to empty string
setLast ( string $name ) Appends last part to current definition

Method Details

appendToCurrent() public method

Appends name to current definition
public appendToCurrent ( string $name )
$name string

finishCurrent() public method

Finishes building of current definition and begins to build new one
public finishCurrent ( )

getAliases() public method

Creates new Aliases instance
public getAliases ( string $namespace = '' ) : Aliases
$namespace string
return Aliases

resetCurrent() public method

Sets current definition to empty string
public resetCurrent ( )

setLast() public method

Appends last part to current definition
public setLast ( string $name )
$name string