Метод | Описание | |
---|---|---|
__construct ( |
||
generate ( PhpSpec\Locator\Resource $resource, array $data = [] ) |
Метод | Описание | |
---|---|---|
getFilePath ( PhpSpec\Locator\Resource $resource ) : string | ||
getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
getTemplateRenderer ( ) : |
||
renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string |
Метод | Описание | |
---|---|---|
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 | |
Результат | string |
abstract protected getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
$resource | PhpSpec\Locator\Resource | |
$filepath | string | |
Результат | string |
protected getTemplateRenderer ( ) : |
||
Результат |
abstract protected renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string | ||
$resource | PhpSpec\Locator\Resource | |
$filepath | string | |
Результат | string |