Method | Description | |
---|---|---|
__construct ( |
||
generate ( PhpSpec\Locator\Resource $resource, array $data = [] ) |
Method | Description | |
---|---|---|
getFilePath ( PhpSpec\Locator\Resource $resource ) : string | ||
getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
getTemplateRenderer ( ) : |
||
renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string |
Method | 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 | |
return | string |
abstract protected getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
$resource | PhpSpec\Locator\Resource | |
$filepath | string | |
return | string |
protected getTemplateRenderer ( ) : |
||
return |
abstract protected renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
$resource | PhpSpec\Locator\Resource | |
$filepath | string | |
return | string |