PHP Class PhpSpec\CodeGenerator\Generator\ClassGenerator

Inheritance: extends PromptingGenerator
Show file Open project: phpspec/phpspec

Public Methods

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

Protected Methods

Method Description
getFilePath ( PhpSpec\Locator\Resource $resource ) : string
getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string
getTemplate ( ) : string
renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string

Method Details

getFilePath() protected method

protected getFilePath ( PhpSpec\Locator\Resource $resource ) : string
$resource PhpSpec\Locator\Resource
return string

getGeneratedMessage() protected method

protected getGeneratedMessage ( PhpSpec\Locator\Resource $resource, string $filepath ) : string
$resource PhpSpec\Locator\Resource
$filepath string
return string

getPriority() public method

public getPriority ( ) : integer
return integer

getTemplate() protected method

protected getTemplate ( ) : string
return string

renderTemplate() protected method

protected renderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath ) : string
$resource PhpSpec\Locator\Resource
$filepath string
return string

supports() public method

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