PHP Class PhpSpec\CodeGenerator\Generator\MethodSignatureGenerator

Inheritance: implements PhpSpec\CodeGenerator\Generator\Generator
Exibir arquivo Open project: phpspec/phpspec

Public Methods

Method Description
__construct ( ConsoleIO $io, TemplateRenderer $templates, Filesystem $filesystem )
generate ( PhpSpec\Locator\Resource $resource, array $data = [] )
getPriority ( ) : integer
supports ( PhpSpec\Locator\Resource $resource, string $generation, array $data ) : boolean

Protected Methods

Method Description
getTemplate ( ) : string

Private Methods

Method Description
buildArgumentString ( array $arguments ) : string
insertMethodSignature ( string $filepath, string $content )

Method Details

__construct() public method

public __construct ( ConsoleIO $io, TemplateRenderer $templates, Filesystem $filesystem )
$io PhpSpec\Console\ConsoleIO
$templates PhpSpec\CodeGenerator\TemplateRenderer
$filesystem PhpSpec\Util\Filesystem

generate() public method

public generate ( PhpSpec\Locator\Resource $resource, array $data = [] )
$resource PhpSpec\Locator\Resource
$data array

getPriority() public method

public getPriority ( ) : integer
return integer

getTemplate() protected method

protected getTemplate ( ) : 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