UNPKG

@rightcapital/phpdoc-parser

Version:

TypeScript version of PHPDoc parser with support for intersection types and generics

20 lines (19 loc) 682 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PropertyTagValueNode = void 0; const php_doc_tag_value_node_1 = require("./php-doc-tag-value-node"); class PropertyTagValueNode extends php_doc_tag_value_node_1.PhpDocTagValueNode { constructor(type, propertyName, description) { super(); this.type = type; this.propertyName = propertyName; this.description = description; } toString() { return `${this.type.toString()} ${this.propertyName} ${this.description}`.trim(); } getNodeType() { return 'PropertyTagValueNode'; } } exports.PropertyTagValueNode = PropertyTagValueNode;