Yii::t('main', 'ID'), 'type' => Yii::t('main', 'Type'), 'section' => Yii::t('main', 'Section'), 'key' => Yii::t('main', 'Key'), 'value' => Yii::t('main', 'Value'), 'active' => Yii::t('main', 'Active'), 'created_at' => Yii::t('main', 'Created At'), 'updated_at' => Yii::t('main', 'Updated At'), ]; } public static function create($type, $section, $key, $value, $active): self { $settings = new static(); $settings->type = $type; $settings->section = $section; $settings->key = $key; $settings->value = $value; $settings->active = $active; return $settings; } public function edit($type, $section, $key, $value, $active): void { $this->type = $type; $this->section = $section; $this->key = $key; $this->value = $value; $this->active = $active; } public function behaviors(): array { return [ TimestampBehavior::className(), ]; } }