import { Entity } from '@/core/domain/Entity';

type AppConfigProps = {
  defaultMessages: any[];
};

export class AppConfig extends Entity<AppConfigProps> {
  constructor(props: AppConfigProps, id?: string) {
    super(props, id);
  }

  get defaultMessages() {
    return this.props.defaultMessages;
  }

  set defaultMessages(value: any[]) {
    this.props.defaultMessages = value;
  }

  static create(props: AppConfigProps, id?: string) {
    return new AppConfig(props, id);
  }
}
