@rightcapital/phpdoc-parser
Version:
TypeScript version of PHPDoc parser with support for intersection types and generics
19 lines (18 loc) • 605 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExtendsTagValueNode = void 0;
const php_doc_tag_value_node_1 = require("./php-doc-tag-value-node");
class ExtendsTagValueNode extends php_doc_tag_value_node_1.PhpDocTagValueNode {
constructor(type, description = '') {
super();
this.type = type;
this.description = description;
}
toString() {
return `${this.type.toString()} ${this.description}`.trim();
}
getNodeType() {
return 'ExtendsTagValueNode';
}
}
exports.ExtendsTagValueNode = ExtendsTagValueNode;