File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function __toString() {
54
54
} else {
55
55
$ annotationsStr .= "\n\t * " . \end ($ annotations );
56
56
}
57
- $ annotationsStr .= "\n\t** / " ;
57
+ $ annotationsStr .= "\n\t*/ " ;
58
58
}
59
59
return $ annotationsStr . "\n\t{$ this ->access } $ " . $ this ->name . "; \n" ;
60
60
}
@@ -193,8 +193,9 @@ public function getSetter() {
193
193
}
194
194
195
195
public function getAddInManyMember () {
196
- if (\substr ($ this ->name , - 1 ) === 's ' ) {
197
- $ name = \substr ($ this ->name , 0 , - 1 );
196
+ $ name = $ this ->name ;
197
+ if (\substr ($ name , - 1 ) === 's ' ) {
198
+ $ name = \substr ($ name , 0 , - 1 );
198
199
}
199
200
$ result = "\n\t public function add " . \ucfirst ($ name ) . '($ ' . $ name . "){ \n" ;
200
201
$ result .= "\t\t" . '$this-> ' . $ this ->name . '[]=$ ' . $ name . "; \n" ;
You can’t perform that action at this time.
0 commit comments