Property | Type | Description | |
---|---|---|---|
$config | array | ||
$tableData |
Method | Description | |
---|---|---|
__construct ( array $config = [], array $tableData = [] ) | ||
build ( string $className, string $moduleName ) | Build the class |
Method | Description | |
---|---|---|
addClassDocBlock ( string $className, string $moduleName ) | Add a class doc block | |
fetchPrimaryColumns ( ) : array | ||
fetchTableColumns ( ) : array | ||
generateGetMethod ( $columnName, $columnType ) : |
||
generateIdentifierMethod ( array $primaryColumns, array $tableColumns ) : |
||
generateMagicToStringMethod ( array $primaryColumns, array $tableColumns ) : |
||
generateNormalToStringMethod ( ) : |
||
generateProperty ( $columnName, $columnType ) : Zend\Code\Generator\PropertyGenerator | ||
generateSetMethod ( $columnName, $columnType ) : |
public __construct ( array $config = [], array $tableData = [] ) | ||
$config | array | |
$tableData | array |
protected addClassDocBlock ( string $className, string $moduleName ) | ||
$className | string | |
$moduleName | string |
protected generateGetMethod ( $columnName, $columnType ) : |
||
$columnName | ||
$columnType | ||
return |
protected generateIdentifierMethod ( array $primaryColumns, array $tableColumns ) : |
||
$primaryColumns | array | |
$tableColumns | array | |
return |
protected generateMagicToStringMethod ( array $primaryColumns, array $tableColumns ) : |
||
$primaryColumns | array | |
$tableColumns | array | |
return |
protected generateNormalToStringMethod ( ) : |
||
return |
protected generateProperty ( $columnName, $columnType ) : Zend\Code\Generator\PropertyGenerator | ||
$columnName | ||
$columnType | ||
return | Zend\Code\Generator\PropertyGenerator |
protected generateSetMethod ( $columnName, $columnType ) : |
||
$columnName | ||
$columnType | ||
return |