PHP Class PhpSpec\CodeGenerator\TemplateRenderer

Afficher le fichier Open project: phpspec/phpspec Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
normalizeLocation ( string $location, boolean $trimLeft = false ) : string

Method Details

__construct() public méthode

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

appendLocation() public méthode

public appendLocation ( string $location )
$location string

getLocations() public méthode

public getLocations ( ) : array
Résultat array

prependLocation() public méthode

public prependLocation ( string $location )
$location string

render() public méthode

public render ( string $name, array $values = [] ) : string
$name string
$values array
Résultat string

renderString() public méthode

public renderString ( string $template, array $values = [] ) : string
$template string
$values array
Résultat string

setLocations() public méthode

public setLocations ( array $locations )
$locations array