PHP Class ZF2rapid\Generator\ClassGenerator\ModuleClassGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator
显示文件 Open project: zfrapid/zf2rapid Class Usage Examples

Protected Properties

Property Type Description
$config array
$moduleRootConstant string

Public Methods

Method Description
__construct ( null | string $moduleName, null | string $moduleRootConstant, array $config = [] )

Protected Methods

Method Description
addClassDocBlock ( $moduleName ) Add a class doc block
addGetAutoloaderConfigMethod ( ) : void Generate the getAutoloaderConfig() method
addGetConfigMethod ( ) : void Generate the getConfig() method
addInitMethod ( ) Generate the init() method

Method Details

__construct() public method

public __construct ( null | string $moduleName, null | string $moduleRootConstant, array $config = [] )
$moduleName null | string
$moduleRootConstant null | string
$config array

addClassDocBlock() protected method

Add a class doc block
protected addClassDocBlock ( $moduleName )
$moduleName

addGetAutoloaderConfigMethod() protected method

Generate the getAutoloaderConfig() method
protected addGetAutoloaderConfigMethod ( ) : void
return void

addGetConfigMethod() protected method

Generate the getConfig() method
protected addGetConfigMethod ( ) : void
return void

addInitMethod() protected method

Generate the init() method
protected addInitMethod ( )

Property Details

$config protected_oe property

protected array $config
return array

$moduleRootConstant protected_oe property

protected string $moduleRootConstant
return string