website refactor
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import type { Entity } from '@core/shared/domain/Entity';
|
||||
import { Entity } from '@core/shared/domain/Entity';
|
||||
import { GameId } from './GameId';
|
||||
import { GameName } from './GameName';
|
||||
|
||||
export class Game implements Entity<GameId> {
|
||||
readonly id: GameId;
|
||||
export class Game extends Entity<GameId> {
|
||||
readonly name: GameName;
|
||||
|
||||
private constructor(props: { id: GameId; name: GameName }) {
|
||||
this.id = props.id;
|
||||
super(props.id);
|
||||
|
||||
this.name = props.name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user