PHP Class PhpSpec\CodeGenerator\TemplateRenderer

ファイルを表示 Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( Filesystem $filesystem )
appendLocation ( string $location )
getLocations ( ) : array
prependLocation ( string $location )
render ( string $name, array $values = [] ) : string
renderString ( string $template, array $values = [] ) : string
setLocations ( array $locations )

Private Methods

Method Description
normalizeLocation ( string $location, boolean $trimLeft = false ) : string

Method Details

__construct() public method

public __construct ( Filesystem $filesystem )
$filesystem PhpSpec\Util\Filesystem

appendLocation() public method

public appendLocation ( string $location )
$location string

getLocations() public method

public getLocations ( ) : array
return array

prependLocation() public method

public prependLocation ( string $location )
$location string

render() public method

public render ( string $name, array $values = [] ) : string
$name string
$values array
return string

renderString() public method

public renderString ( string $template, array $values = [] ) : string
$template string
$values array
return string

setLocations() public method

public setLocations ( array $locations )
$locations array