PHP Class gossi\codegen\generator\CodeFileGenerator

Generates code for a model and puts it into a file with statements. Can also generate header comments.
Author: Thomas Gossmann
Inheritance: extends CodeGenerator
Datei anzeigen Open project: gossi/php-code-generator Class Usage Examples

Public Methods

Method Description
__construct ( CodeFileGeneratorConfig | array $config = null ) Creates a new CodeFileGenerator
generate ( gossi\codegen\model\GenerateableInterface $model ) {@inheritDoc}
getConfig ( ) : CodeFileGeneratorConfig {@inheritDoc}

Protected Methods

Method Description
configure ( $config = null )

Method Details

__construct() public method

Creates a new CodeFileGenerator
See also: https://php-code-generator.readthedocs.org/en/latest/generator.html
public __construct ( CodeFileGeneratorConfig | array $config = null )
$config gossi\codegen\config\CodeFileGeneratorConfig | array

configure() protected method

protected configure ( $config = null )

generate() public method

{@inheritDoc}
public generate ( gossi\codegen\model\GenerateableInterface $model )
$model gossi\codegen\model\GenerateableInterface

getConfig() public method

{@inheritDoc}
public getConfig ( ) : CodeFileGeneratorConfig
return gossi\codegen\config\CodeFileGeneratorConfig