public function setConfig($config) { if ($config) { $this->config = $config; } else { throw new \Exception(\yii::t('walle', 'unknown config')); } return $this; }