PHP Class ZF2rapid\Generator\CrudGenerator\ControllerFactoryGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator
ファイルを表示 Open project: zfrapid/zf2rapid Class Usage Examples

Protected Properties

Property Type Description
$config array

Public Methods

Method Description
__construct ( string $controllerName, string $moduleName, string $entityModule, string $entityClass, array $config = [] )

Protected Methods

Method Description
addClassDocBlock ( string $className ) Add a class doc block
addCreateServiceMethod ( string $className, $moduleName, string $entityModule, $entityClass ) Generate the create service method

Method Details

__construct() public method

public __construct ( string $controllerName, string $moduleName, string $entityModule, string $entityClass, array $config = [] )
$controllerName string
$moduleName string
$entityModule string
$entityClass string
$config array

addClassDocBlock() protected method

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

addCreateServiceMethod() protected method

Generate the create service method
protected addCreateServiceMethod ( string $className, $moduleName, string $entityModule, $entityClass )
$className string
$moduleName
$entityModule string
$entityClass

Property Details

$config protected_oe property

protected array $config
return array