优化模型代码生成

This commit is contained in:
JaguarJack 2020-05-28 06:37:32 +08:00
parent 5face1c077
commit b57d7f95c3
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class Model extends Factory
* @param $params
* @return string|string[]
*/
public function getContent(&$params)
public function getContent($params)
{
// TODO: Implement done() method.
$template = new Template();

View File

@ -57,7 +57,8 @@ TMP;
{
if ($name) {
return <<<TMP
protected \$name = '{$name}';
protected \$name = '{$name}';
TMP;