Psr2 Code Generator

CodeFileGenerator extends CodeGenerator

Code file generator.

Generates code for a model and puts it into a file with <?php statements. Can also generate header comments.

Tags
author

Thomas Gossmann

author

Cristiano Cinotti

Table of Contents

SORT_CONSTANTS_DEFAULT  = 'default'
SORT_METHODS_DEFAULT  = 'default'
SORT_PROPERTIES_DEFAULT  = 'default'
SORT_USESTATEMENTS_DEFAULT  = 'default'
$config  : GeneratorConfig
$generator  : ModelGenerator
__construct()  : mixed
generate()  : string
Generates code from a given model.
getConfig()  : GeneratorConfig
Returns the used configuration.

Constants

SORT_CONSTANTS_DEFAULT

public mixed SORT_CONSTANTS_DEFAULT = 'default'

SORT_METHODS_DEFAULT

public mixed SORT_METHODS_DEFAULT = 'default'

SORT_PROPERTIES_DEFAULT

public mixed SORT_PROPERTIES_DEFAULT = 'default'

SORT_USESTATEMENTS_DEFAULT

public mixed SORT_USESTATEMENTS_DEFAULT = 'default'

Properties

Methods

__construct()

public __construct([mixed $config = null ]) : mixed
Parameters
$config : mixed = null
Return values
mixed

Search results