woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
41 lines • 935 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("util");
/**
* Represents a person.
*/
class Person {
/**
* Initializes a new instance of the `Person` class.
*/
constructor(options) {
/**
* The url to the homepage of the person.
*/
this.url = null;
this.Name = options.Name;
if (!util_1.isNullOrUndefined(options.URL)) {
this.URL = options.URL;
}
}
/**
* Gets or sets the name of the person.
*/
get Name() {
return this.name;
}
set Name(value) {
this.name = value;
}
/**
* Gets or sets the url to the homepage of the person.
*/
get URL() {
return this.url;
}
set URL(value) {
this.url = value;
}
}
exports.Person = Person;
//# sourceMappingURL=Person.js.map