PHP Class ZF2rapid\Generator\ClassGenerator\StorageClassGenerator

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

Protected Properties

Property Type Description
$config array
$loadedTables array
$tableName string

Public Methods

Method Description
__construct ( array $config = [], string $tableName, array $loadedTables = [] )
build ( string $className, string $moduleName ) Build the class
filterUnderscoreToCamelCase ( string $text ) : string Filter underscore to camel case

Protected Methods

Method Description
addClassDocBlock ( string $className, string $moduleName ) Add a class doc block
addGetOptionsMethod ( $moduleName ) : MethodGenerator Add a getOptions() method if table has an external dependency

Method Details

__construct() public method

public __construct ( array $config = [], string $tableName, array $loadedTables = [] )
$config array
$tableName string
$loadedTables array

addClassDocBlock() protected method

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

addGetOptionsMethod() protected method

Add a getOptions() method if table has an external dependency
protected addGetOptionsMethod ( $moduleName ) : MethodGenerator
$moduleName
return Zend\Code\Generator\MethodGenerator

build() public method

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

filterUnderscoreToCamelCase() public method

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

Property Details

$config protected property

protected array $config
return array

$loadedTables protected property

protected array $loadedTables
return array

$tableName protected property

protected string $tableName
return string