PHP Class ZF2rapid\Generator\CrudGenerator\DataFormClassGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator, implements ZF2rapid\Generator\ClassGenerator\ClassGeneratorInterface
Show file Open project: zfrapid/zf2rapid

Protected Properties

Property Type Description
$config array
$entityClass string
$entityModule string
$loadedTables array
$paramModule string

Public Methods

Method Description
__construct ( null | string $paramModule, null | string $entityModule, $entityClass, array $loadedTables = [], array $config = [] )
build ( string $className, string $moduleName ) Build the class

Protected Methods

Method Description
addClassDocBlock ( string $className, string $moduleName ) Add a class doc block
addInitMethod ( $className, $moduleName ) Generate an init method
addOptionsProperty ( string $columnName )
addOptionsSetter ( string $columnName )
filterCamelCaseToUnderscore ( string $text ) : string Filter camel case to underscore
filterUnderscoreToCamelCase ( string $text ) : string Filter underscore to camel case

Method Details

__construct() public method

public __construct ( null | string $paramModule, null | string $entityModule, $entityClass, array $loadedTables = [], array $config = [] )
$paramModule null | string
$entityModule null | string
$loadedTables array
$config array

addClassDocBlock() protected method

Add a class doc block
protected addClassDocBlock ( string $className, string $moduleName )
$className string
$moduleName string

addInitMethod() protected method

Generate an init method
protected addInitMethod ( $className, $moduleName )
$className
$moduleName

addOptionsProperty() protected method

protected addOptionsProperty ( string $columnName )
$columnName string

addOptionsSetter() protected method

protected addOptionsSetter ( string $columnName )
$columnName string

build() public method

Build the class
public build ( string $className, string $moduleName )
$className string
$moduleName string

filterCamelCaseToUnderscore() protected method

Filter camel case to underscore
protected filterCamelCaseToUnderscore ( string $text ) : string
$text string
return string

filterUnderscoreToCamelCase() protected method

Filter underscore to camel case
protected filterUnderscoreToCamelCase ( string $text ) : string
$text string
return string

Property Details

$config protected property

protected array $config
return array

$entityClass protected property

protected string $entityClass
return string

$entityModule protected property

protected string $entityModule
return string

$loadedTables protected property

protected array $loadedTables
return array

$paramModule protected property

protected string $paramModule
return string