aboutsummaryrefslogtreecommitdiff
path: root/lib/components/winner.js
blob: 1045578414416d3c5a443493816455f1245d417d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Component } from '@serpentity/serpentity';

/**
 * Component that stores a winner
 *
 * @extends {external:Serpentity.Component}
 * @class WinnerComponent
 * @param {object} config a configuration object to extend.
 */
export default class WinnerComponent extends Component {
  constructor(config) {

    super(config);

    /**
     * The properthy that holds the winner
     *
     * @property {string} winner
     * @instance
     * @memberof WionnerComponent
     */
    this.winner = this.winner || null;
  }
}