public function getSetting() { if ($this->_setting === null) { $settingsArray = empty($this->settings) ? [] : Json::decode($this->settings); $this->_setting = Yii::createObject(['class' => UserSetting::className(), 'sender' => $this, 'data' => $settingsArray]); } return $this->_setting; }
public function testUnsetRemoveElement() { $model = new UserSetting(); $this->assertFalse($model->remove('not_exists')); }