PHP Class ZF2rapid\Generator\ClassGenerator\ViewHelperClassGenerator

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

Protected Properties

Property Type Description
$config array

Public Methods

Method Description
__construct ( array $config = [] )
build ( string $className, string $moduleName ) Build the class

Protected Methods

Method Description
addClassDocBlock ( string $viewHelperName, string $moduleName ) Add a class doc block
addInvokeMethod ( ) Generate an __invoke method

Method Details

__construct() public method

public __construct ( array $config = [] )
$config array

addClassDocBlock() protected method

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

addInvokeMethod() protected method

Generate an __invoke method
protected addInvokeMethod ( )

build() public method

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

Property Details

$config protected property

protected array $config
return array