PHP Class ZF2rapid\Generator\HydratorStrategyGenerator

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

Protected Properties

Property Type Description
$config array
$entityClass string
$loadedTables array
$refTableName string

Public Methods

Method Description
__construct ( Zend\Stdlib\Parameters $params, string $refTableName )
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 ( Zend\Stdlib\Parameters $params, string $refTableName )
$params Zend\Stdlib\Parameters
$refTableName 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

$config protected_oe property

protected array $config
return array

$entityClass protected_oe property

protected string $entityClass
return string

$loadedTables protected_oe property

protected array $loadedTables
return array

$refTableName protected_oe property

protected string $refTableName
return string