PHP Class PhpSpec\CodeGenerator\GeneratorManager

显示文件 Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
generate ( PhpSpec\Locator\Resource $resource, string $name, array $data = [] ) : mixed
registerGenerator ( PhpSpec\CodeGenerator\Generator\Generator $generator )

Method Details

generate() public method

public generate ( PhpSpec\Locator\Resource $resource, string $name, array $data = [] ) : mixed
$resource PhpSpec\Locator\Resource
$name string
$data array
return mixed

registerGenerator() public method

public registerGenerator ( PhpSpec\CodeGenerator\Generator\Generator $generator )
$generator PhpSpec\CodeGenerator\Generator\Generator