255], ]; } public function attributeLabels(): array { return [ 'id' => Yii::t('schema', 'ID'), 'name' => Yii::t('schema', 'Название'), 'created_at' => Yii::t('schema', 'Создано'), 'updated_at' => Yii::t('schema', 'Изменено'), ]; } public function behaviors(): array { return [ TimestampBehavior::class, ]; } public static function getTypeList($type = null) { $typeList = [ self::TYPE_ACCURATE => Yii::t('schema', 'Точное'), self::TYPE_SOFT => Yii::t('schema', 'Разбавочное'), ]; if ($type) { return isset($typeList[$type]) ? $typeList[$type] : null; } return $typeList; } }