src/models/User.php
public function getSetting()
    {
        if ($this->_setting === null) {
            $settingsArray = (empty($this->settings)) ? [] : Json::decode($this->settings);
            $this->_setting = Yii::createObject(['class' => UserSetting::class, 'sender' => $this, 'data' => $settingsArray]);
        }
        
        return $this->_setting;
    }
public function getSetting()
    {
        if ($this->_setting === null) {
            $settingsArray = (empty($this->settings)) ? [] : Json::decode($this->settings);
            $this->_setting = Yii::createObject(['class' => UserSetting::class, 'sender' => $this, 'data' => $settingsArray]);
        }
        
        return $this->_setting;
    }
public function getSetting ( ) { if ( $ this -> _setting === null ) { $ settingsArray = ( empty ( $ this -> settings ) ) ? [ ] : Json :: decode ( $ this -> settings ) ; $ this -> _setting = Yii :: createObject ( [ 'class' => UserSetting :: class , 'sender' => $ this , 'data' => $ settingsArray ] ) ; } return $ this -> _setting ; }
Get user settings objects.

@return \luya\admin\models\UserSetting
Get user settings objects .