/** {@inheritdoc} */ public function rules() { return array_merge(parent::rules(), [[['model_id'], 'integer'], [['name'], 'required']]); }
/** {@inheritdoc} */ public function attributeHints() { return ArrayHelper::merge(parent::attributeHints(), ['purpose' => Yii::t('hipanel:server:order', 'How are you going to use the server?'), 'social' => Yii::t('hipanel:server:order', 'Any social network link. Will be used in case of emergency contact')]); }