public function save(Domain $model): void
    {
        if (!$model->save()) {
            throw new \RuntimeException($this->i18n->t('setrun/sys', 'Saving error'));
        }
    }
public function save(Domain $model): void
    {
        if (!$model->save()) {
            throw new \RuntimeException($this->i18n->t('setrun/sys', 'Saving error'));
        }
    }
public function save ( Domain $ model ) : void { if ( ! $ model -> save ( ) ) { throw new \ RuntimeException ( $ this -> i18n -> t ( 'setrun/sys' , 'Saving error' ) ) ; } }
Save a domain item.
@param Domain $model
@return void
Save a domain item .