PHP Class PhpSpec\CodeGenerator\Generator\SpecificationGenerator

Inheritance: extends PromptingGenerator
Afficher le fichier Open project: phpspec/phpspec

Méthodes publiques

Méthode Description
getPriority ( ) : integer
supports ( PhpSpec\Locator\Resource $resource, string $generation, array $data ) : boolean

Méthodes protégées

Méthode Description
getFilePath ( PhpSpec\Locator\Resource $resource ) : mixed
getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string
getTemplate ( ) : string
renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string

Method Details

getFilePath() protected méthode

protected getFilePath ( PhpSpec\Locator\Resource $resource ) : mixed
$resource PhpSpec\Locator\Resource
Résultat mixed

getGeneratedMessage() protected méthode

protected getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string
$resource PhpSpec\Locator\Resource
$filepath string
Résultat string

getPriority() public méthode

public getPriority ( ) : integer
Résultat integer

getTemplate() protected méthode

protected getTemplate ( ) : string
Résultat string

renderTemplate() protected méthode

protected renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string
$resource PhpSpec\Locator\Resource
$filepath string
Résultat string

supports() public méthode

public supports ( PhpSpec\Locator\Resource $resource, string $generation, array $data ) : boolean
$resource PhpSpec\Locator\Resource
$generation string
$data array
Résultat boolean