您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
447B

  1. <?php
  2. namespace common\logic;
  3. use yii\db\ActiveRecord;
  4. abstract class AbstractBuilder extends AbstractService implements BuilderInterface
  5. {
  6. public function saveCreate(ActiveRecord $model): bool
  7. {
  8. return $model->save();
  9. }
  10. public function saveUpdate(ActiveRecord $model): bool
  11. {
  12. return $model->save();
  13. }
  14. public function delete(ActiveRecord $model): bool
  15. {
  16. return $model->delete();
  17. }
  18. }