1
0
mirror of synced 2024-12-13 22:56:04 +03:00

[2.0] Fixing issue with EntityGenerator and spaces/formatting

This commit is contained in:
jwage 2010-03-19 22:47:34 +00:00
parent 42c5562874
commit 655361427c

View File

@ -83,6 +83,7 @@ class EntityGenerator
'<?php
<namespace><use>
<entityAnnotation>
<entityClassName>
{
@ -91,10 +92,10 @@ class EntityGenerator
private static $_getMethodTemplate =
'/**
* <description>
*
* @return <variableType>$<variableName>
*/
* <description>
*
* @return <variableType>$<variableName>
*/
public function <methodName>()
{
return $this-><fieldName>;
@ -102,10 +103,10 @@ public function <methodName>()
private static $_setMethodTemplate =
'/**
* <description>
*
* @param <variableType>$<variableName>
*/
* <description>
*
* @param <variableType>$<variableName>
*/
public function <methodName>(<methodTypeHint>$<variableName>)
{
$this-><fieldName> = $<variableName>;
@ -113,10 +114,10 @@ public function <methodName>(<methodTypeHint>$<variableName>)
private static $_addMethodTemplate =
'/**
* <description>
*
* @param <variableType>$<variableName>
*/
* <description>
*
* @param <variableType>$<variableName>
*/
public function <methodName>(<methodTypeHint>$<variableName>)
{
$this-><fieldName>[] = $<variableName>;
@ -124,8 +125,8 @@ public function <methodName>(<methodTypeHint>$<variableName>)
private static $_lifecycleCallbackMethodTemplate =
'/**
* @<name>
*/
* @<name>
*/
public function <methodName>()
{
// Add your code here