update($data); return $model; } public function delete($model): void { $model->delete(); } }