You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  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. }