RpyPlayerWeb/public_html/js/Token.js

12 lines
287 B
JavaScript
Raw Permalink Normal View History

2015-12-06 13:49:35 +02:00
function Token(text, type) {
this.text = text;
this.type = type;
}
Token.prototype.getText = function () { return this.text; };
Token.prototype.getType = function () { return this.type; };
Token.prototype.toString = function () {
return this.type + " " + this.text;
};