Méthode | Description | |
---|---|---|
__construct ( |
||
generate ( PhpSpec\Locator\Resource $resource, array $data = [] ) |
Méthode | Description | |
---|---|---|
getFilePath ( PhpSpec\Locator\Resource $resource ) : string | ||
getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
getTemplateRenderer ( ) : |
||
renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string |
Méthode | Description | |
---|---|---|
createDirectoryIfItDoesExist ( string $filepath ) | ||
fileAlreadyExists ( string $filepath ) : boolean | ||
generateFileAndRenderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) | ||
userAborts ( string $filepath ) : boolean |
public __construct ( |
||
$io | ||
$templates | ||
$filesystem | ||
$executionContext | PhpSpec\Process\Context\ExecutionContext |
abstract protected getFilePath ( PhpSpec\Locator\Resource $resource ) : string | ||
$resource | PhpSpec\Locator\Resource | |
Résultat | string |
abstract protected getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
$resource | PhpSpec\Locator\Resource | |
$filepath | string | |
Résultat | string |
protected getTemplateRenderer ( ) : |
||
Résultat |
abstract protected renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
$resource | PhpSpec\Locator\Resource | |
$filepath | string | |
Résultat | string |