class CodeGenerator

Code generator

Generates code for any generateable model

Constants

SORT_USESTATEMENTS_DEFAULT

SORT_CONSTANTS_DEFAULT

SORT_PROPERTIES_DEFAULT

SORT_METHODS_DEFAULT

Methods

__construct(CodeGeneratorConfig|array $config = null)

No description

getConfig()

Returns the used configuration

string
generate(GenerateableInterface $model)

Generates code from a given model

Details

at line line 34
__construct(CodeGeneratorConfig|array $config = null)

Parameters

CodeGeneratorConfig|array $config

at line line 54
CodeGeneratorConfig getConfig()

Returns the used configuration

Return Value

CodeGeneratorConfig

at line line 64
string generate(GenerateableInterface $model)

Generates code from a given model

Parameters

GenerateableInterface $model

Return Value

string the generated code