@@ -124,10 +124,10 @@ public function createApiClass($dir, $data, $columns)
124124 MethodGenerator::FLAG_INTERFACE ,
125125 null ,
126126 DocBlockGenerator::fromArray ([
127- 'shortDescription ' => 'set ' .$ fieldName ,
127+ 'shortDescription ' => 'Set ' .$ fieldName ,
128128 'longDescription ' => null ,
129129 'tags ' => [
130- new Tag \ParamTag ($ camelCase , [$ column ['type ' ]]),
130+ new Tag \ParamTag ($ camelCase , [$ this -> helper -> getReturnType ( $ column ['type ' ]) ]),
131131 new Tag \ReturnTag ([
132132 'datatype ' => $ nameSpace .'\\' .$ data ['name ' ].'Interface ' ,
133133 ]),
@@ -140,11 +140,11 @@ public function createApiClass($dir, $data, $columns)
140140 MethodGenerator::FLAG_INTERFACE ,
141141 null ,
142142 'docblock ' => DocBlockGenerator::fromArray ([
143- 'shortDescription ' => 'get ' .$ fieldName ,
143+ 'shortDescription ' => 'Get ' .$ fieldName ,
144144 'longDescription ' => null ,
145145 'tags ' => [
146146 new Tag \ReturnTag ([
147- 'datatype ' => $ nameSpace . '\\' . $ data [ ' name ' ]. ' Interface ' ,
147+ 'datatype ' => $ this -> helper -> getReturnType ( $ column [ ' type ' ]) ,
148148 ]),
149149 ],
150150 ]),
@@ -280,10 +280,10 @@ public function createModelClass($dir, $data, $columns)
280280 MethodGenerator::FLAG_PUBLIC ,
281281 'return $this->setData(self:: ' .strtoupper ($ field ).', $ ' .$ camelCase .'); ' ,
282282 DocBlockGenerator::fromArray ([
283- 'shortDescription ' => 'set ' .$ fieldName ,
283+ 'shortDescription ' => 'Set ' .$ fieldName ,
284284 'longDescription ' => null ,
285285 'tags ' => [
286- new Tag \ParamTag ($ camelCase , [$ column ['type ' ]]),
286+ new Tag \ParamTag ($ camelCase , [$ this -> helper -> getReturnType ( $ column ['type ' ]) ]),
287287 new Tag \ReturnTag ([
288288 'datatype ' => $ nameSpace .'\\' .$ data ['name ' ].'Interface ' ,
289289 ]),
@@ -296,11 +296,11 @@ public function createModelClass($dir, $data, $columns)
296296 MethodGenerator::FLAG_PUBLIC ,
297297 'return parent::getData(self:: ' .strtoupper ($ field ).'); ' ,
298298 'docblock ' => DocBlockGenerator::fromArray ([
299- 'shortDescription ' => 'get ' .$ fieldName ,
299+ 'shortDescription ' => 'Get ' .$ fieldName ,
300300 'longDescription ' => null ,
301301 'tags ' => [
302302 new Tag \ReturnTag ([
303- 'datatype ' => $ nameSpace . '\\' . $ data [ ' name ' ]. ' Interface ' ,
303+ 'datatype ' => $ this -> helper -> getReturnType ( $ column [ ' type ' ]) ,
304304 ]),
305305 ],
306306 ]),
0 commit comments