PHP Class ZF2rapid\Generator\ClassGenerator\TableGatewayClassGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator, implements ZF2rapid\Generator\ClassGenerator\ClassGeneratorInterface
Exibir arquivo 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
addSelectWithMethod ( ) : MethodGenerator Add a selectWith() 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

addSelectWithMethod() protected method

Add a selectWith() method if table has an external dependency
protected addSelectWithMethod ( ) : MethodGenerator
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_oe property

protected array $config
return array

$loadedTables protected_oe property

protected array $loadedTables
return array

$tableName protected_oe property

protected string $tableName
return string