PHP Class ZF2rapid\Generator\ClassGenerator\ValidatorClassGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator, implements ZF2rapid\Generator\ClassGenerator\ClassGeneratorInterface
Mostrar archivo 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 $className, string $moduleName ) Add a class doc block
addIsValidMethod ( ) Generate a isValid method
addMessageConstant ( $className )
addMessageTemplates ( $className )

Method Details

__construct() public method

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

addClassDocBlock() protected method

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

addIsValidMethod() protected method

Generate a isValid method
protected addIsValidMethod ( )

addMessageConstant() protected method

protected addMessageConstant ( $className )
$className

addMessageTemplates() protected method

protected addMessageTemplates ( $className )
$className

build() public method

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

Property Details

$config protected_oe property

protected array $config
return array