protected function findModel(int $id)
    {
        $settingModelClass = $this->modelClass;

        if (($model = $settingModelClass::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException(Yii::t('yii2mod.settings', 'The requested page does not exist.'));
        }
    }
protected function findModel(int $id)
    {
        $settingModelClass = $this->modelClass;

        if (($model = $settingModelClass::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException(Yii::t('yii2mod.settings', 'The requested page does not exist.'));
        }
    }
protected function findModel ( int $ id ) { $ settingModelClass = $ this -> modelClass ; if ( ( $ model = $ settingModelClass :: findOne ( $ id ) ) !== null ) { return $ model ; } else { throw new NotFoundHttpException ( Yii :: t ( 'yii2mod.settings' , 'The requested page does not exist.' ) ) ; } }
Finds a Setting model based on its primary key value.

If the model is not found, a 404 HTTP exception will be thrown.

@param int $id

@return SettingModel the loaded model

@throws NotFoundHttpException if the model cannot be found
Finds a Setting model based on its primary key value .