import IEntity from "./IEntity" export default class IntegerEntity extends IEntity { static attributes = { value: 0, } /** @param {Object | Number | String} options */ constructor(options = 0) { super(options) /** @type {Number} */ this.value = Math.round(this.value) } valueOf() { return this.value } toString() { return this.value.toString() } }