Files
privacy.sexy/tests/unit/stubs/NumericEntityStub.ts
2020-07-19 02:26:56 +01:00

13 lines
359 B
TypeScript

import { BaseEntity } from '@/infrastructure/Entity/BaseEntity';
export class NumericEntityStub extends BaseEntity<number> {
public customProperty = 'customProperty';
constructor(id: number) {
super(id);
}
public withCustomProperty(value: string): NumericEntityStub {
this.customProperty = value;
return this;
}
}