aboutsummaryrefslogtreecommitdiff
path: root/lib/components/winner.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/components/winner.js')
-rw-r--r--lib/components/winner.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/components/winner.js b/lib/components/winner.js
new file mode 100644
index 0000000..74de1c8
--- /dev/null
+++ b/lib/components/winner.js
@@ -0,0 +1,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;
+ }
+};
+
+