PHP Class PhpSpec\CodeGenerator\Generator\PrivateConstructorGenerator

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

Public Methods

Method Description
__construct ( ConsoleIO $io, TemplateRenderer $templates, Filesystem $filesystem, PhpSpec\CodeGenerator\Writer\CodeWriter $codeWriter )
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

Method Details

__construct() public method

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

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