优化代码生成
This commit is contained in:
@@ -72,13 +72,15 @@ TMP;
|
||||
*/
|
||||
public function field($field)
|
||||
{
|
||||
return <<<TMP
|
||||
if ($field) {
|
||||
return <<<TMP
|
||||
protected \$field = [
|
||||
{$field}
|
||||
];
|
||||
|
||||
|
||||
TMP;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user