PHP Class ZF2rapid\Generator\ClassGenerator\HydratorClassGenerator

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

Protected Properties

Property Type Description
$baseHydrator string
$config array

Public Methods

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

Protected Methods

Method Description
addClassDocBlock ( string $className, string $moduleName ) Add a class doc block
addExtractMethod ( ) Generate an extract method
addHydrateMethod ( ) Generate an hydrate method

Method Details

__construct() public method

public __construct ( array $config = [], string $baseHydrator = 'ClassMethods' )
$config array
$baseHydrator string

addClassDocBlock() protected method

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

addExtractMethod() protected method

Generate an extract method
protected addExtractMethod ( )

addHydrateMethod() protected method

Generate an hydrate method
protected addHydrateMethod ( )

build() public method

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

Property Details

$baseHydrator protected property

protected string $baseHydrator
return string

$config protected property

protected array $config
return array